Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. local DevelopersAllowed = {} -- add names here
  2. local plr = game.Players.LocalPlayer
  3.  
  4. local function CheckAllowed(p)
  5. for i = 1,#DevelopersAllowed do
  6. if DevlopersAllowed[i] == plr.Name then
  7. return true
  8. end
  9. end
  10. return false
  11. end
  12.  
  13. spawn(function()
  14. if CheckAllowed(plr) then
  15. print("Player Allowed")
  16. else
  17. script.Parent:Destroy()
  18. end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement