Riley_Huntley

Untitled

Mar 22nd, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  1. permission = {"SirAdamFletcher","LordRichardFletcher","SirDavidWashington","SirLiamWashington","Androve2","lightrater","Warriorcatz25","Websnoopy","SUPERTAILSXX",
  2.               "mith1","castleguarder","EmrysVelion","joe1253","CeaselessNickpc","enchantingdison1","SuperGohan13"}  --Enter all of your freinds, family, maybe even leave me in there if you want. LOL
  3.  
  4. function check(player)
  5. if table.maxn(permission)==0 then return true end
  6. for i = 1,#permission do         --Scripty Scripty Stuff
  7. if string.lower(player.Name)==string.lower(permission[i]) then return true end
  8. end
  9. return false
  10. end
  11.  
  12. function onPlayerRespawned(newPlayer)  --More Scripity Script Script
  13.  
  14. if (newPlayer == nil) then return end
  15.  
  16. if not check(newPlayer) then return end
  17. game.Lighting.VIP:findFirstChild("Cavalry Sword"):clone().Parent = newPlayer.Backpack
  18. wait(0)
  19. game.Lighting.VIP:findFirstChild("Flintlock Pistol"):clone().Parent = newPlayer.Backpack
  20. wait(0)
  21. game.Lighting.VIP:findFirstChild("Musket"):clone().Parent = newPlayer.Backpack
  22. wait(0)
  23. game.Lighting.VIP:findFirstChild("Salute"):clone().Parent = newPlayer.Backpack
  24. wait(0)
  25. end
  26.  
  27. function onPlayerEntered(newPlayer)
  28. newPlayer.Changed:connect(function (property)
  29. if (property == "Character") then
  30. onPlayerRespawned(newPlayer)
  31. end
  32. end)
  33. end
  34.  
  35. game.Players.PlayerAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment