Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local groupId = 35720989
- local Door = game.Workspace:WaitForChild("RankDoor")
- local requiredRank = 251
- local function checkPlayer(GroupId, RequiredRank)
- while true do
- if player:IsInGroup(GroupId) and player:GetRankInGroup(GroupId) >= RequiredRank then
- Door.CanCollide = false
- Door.Transparency = 1
- Door.SurfaceGui.signLabel.Text = ""
- else
- Door.CanCollide = true
- Door.Transparency = 0
- Door.SurfaceGui.signLabel.Text = "Early Access Only"
- break
- end
- wait(1)
- end
- end
- checkPlayer(groupId, requiredRank)
Advertisement
Add Comment
Please, Sign In to add comment