Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[CHECK THE NEW VIDEO!]--
- -- https://youtu.be/rHBLb0j1uJ0 --
- -- [GROUP ALLOWED] --
- local plr = game:GetService("Players").LocalPlayer
- local groupid = 0000 -- Paste your group's id here.
- local rankallowed = 1 -- Paste the minimum rank id that a player needs to have!
- local frame = script.Parent
- if plr:GetRankInGroup(groupid) >= rankallowed then
- frame.Visible = true
- else
- frame:Destroy()
- end
- -- [PLAYER ALLOWED] --
- local plr = game:GetService("Players").LocalPlayer
- local frame = script.Parent
- local allowedPlayers = {"AddUsernamehere", "AddUsernamehere"} -- Change the names here!
- local function PlayerAllowed()
- local playername = plr.Name
- for _, allowedplayer in ipairs(allowedPlayers) do
- if allowedplayer == playername then
- return true
- end
- end
- return false
- end
- if PlayerAllowed(plr) then
- frame.Visible = true
- else
- frame:Destroy()
- end
Advertisement
Add Comment
Please, Sign In to add comment