Hello!
How to make that invisible wall for staff, for example only staff members can go inside but customer can’t go in?
Welcome to the community, @dganelsi!
To do this, you can just search ‘rank door’ on the ROBLOX market place an get one, or make one yourself ill give you a quick head-start on making your own script!
local doorpart = script.Parent -- This makes the script know that the parent is the door part.
local id = 1111 -- Put your group id here
local minimumRankLevel = 10 -- Put your desired minimum rank level here
doorpart.Touched:Connect(function(touchPart)
if touchPart.Parent:FindFirstChild("Humanoid") then
local plr = game.Players:FindFirstChild(touchPart.Parent.Name)
if plr:IsInGroup(id) and plr:GetRankInGroup(id) >= minimumRankLevel then
doorpart.CanCollide = false
end
end
end)
I believe this works, if it doesn’t let me know. As this is a pretty simple script, and you’re new, I thought I would give you a brief explanation besides the code.
Did this help? Mark it as ‘solution’!
2 Likes
Thanks! I will tomorow setup if don’t work i will text here
Changed topic to Scripting Support.
Thank you! I setup and now work
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.