Riley_Huntley

Untitled

Mar 27th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.36 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 check(newPlayer) then
  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. --This is a very simple script, to get the object you want, just replace the name.
  26. --You also have to put them in Workspace, to do that:
  27. --1) Scroll Down in the Explorer Tab of Tools
  28. --2) Click the Lighting and Workspace
  29. --3) Find the tool you would like to insert in Workspace
  30. --4) Copy or Drag the tool into the Lighting
  31. --5) Open this script and type the EXACT words of the tool, Heres an example:
  32. --game.Lighting:findFirstChild("yourtool"):clone().Parent = newplayer.Backpack
  33. --That is how simple, just rename the "your tool, but make sure its not in green, if its in green thats me explaining.
  34. --The ones above are the ones you edit, with the pinkish purplish.
  35. end
  36. if not check(newPlayer) then
  37. game.Lighting:findFirstChild("Cavalry Sword"):clone().Parent = newPlayer.Backpack
  38. wait(0)
  39. game.Lighting:findFirstChild("Flintlock Pistol"):clone().Parent = newPlayer.Backpack
  40. wait(0)
  41. game.Lighting:findFirstChild("Musket"):clone().Parent = newPlayer.Backpack
  42. wait(0)
  43. game.Lighting:findFirstChild("Salute"):clone().Parent = newPlayer.Backpack
  44. wait(0)
  45. end
  46. function onPlayerEntered(newPlayer)
  47. newPlayer.Changed:connect(function (property)
  48. if (property == "Character") then
  49. onPlayerRespawned(newPlayer)
  50. end
  51. end)
  52. end
  53.  
  54. game.Players.PlayerAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment