Sungmingamerpro13

Door Group Rank (LocalScript)

Sep 9th, 2025 (edited)
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.58 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local groupId = 35720989
  3. local Door = game.Workspace:WaitForChild("RankDoor")
  4. local requiredRank = 251
  5.  
  6. local function checkPlayer(GroupId, RequiredRank)
  7.     while true do
  8.         if player:IsInGroup(GroupId) and player:GetRankInGroup(GroupId) >= RequiredRank then
  9.             Door.CanCollide = false
  10.             Door.Transparency = 1
  11.             Door.SurfaceGui.signLabel.Text = ""
  12.         else
  13.             Door.CanCollide = true
  14.             Door.Transparency = 0
  15.             Door.SurfaceGui.signLabel.Text = "Early Access Only"
  16.             break
  17.         end
  18.         wait(1)
  19.     end
  20. end
  21.  
  22. checkPlayer(groupId, requiredRank)
  23.  
Advertisement
Add Comment
Please, Sign In to add comment