In todays video I show you how to make a Group Only Door
Hope you enjoyed the video, Have a lovely rest of your day!
PLS go see in the comments the real script because i can't type something TY!
Script:
------------------------------------------------------------------------------------------------
local rank = 10 -- the rank (1-255)
local groupID = 33712827 -- the id of your group
script.Parent.Touched:connect(function(hit)
if (hit and hit.Parent and game.Players:FindFirstChild(hit.Parent.Name)) then
if (game.Players[hit.Parent.Name]:IsInGroup(groupID) and game.Players[hit.Parent.Name]:GetRankInGroup(groupID) = rank) then
script.Parent.CanCollide = false
script.Parent.Transparency = .9
wait(1)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
else
script.Parent.CanCollide = true
end
end
end)
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials