Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.74 KB | None | 0 0
  1. wait()
  2. MPS = game:GetService("MarketplaceService")
  3. local ServerStorage = game:GetService('ServerStorage')
  4. local Tools = game.ServerStorage.Tools
  5. Tools:WaitForChild('Lightsaber')
  6. Tools:WaitForChild('Lightsaber Pike')
  7. Tools:WaitForChild('Doubleblade')
  8. Tools:WaitForChild('GoldHelios')
  9. Tools:WaitForChild('GoldHelios2')
  10. Tools:WaitForChild('Electroblade Training Sword')
  11.  
  12. local MainSith = 4007344
  13. local GuardGroup = 4007790
  14. local IQGroup = 4285116
  15. local IIgroup = 3591124
  16. local DCGroup = 4007799
  17. local ServerStorage = game.ServerStorage
  18. local Tools = game.ServerStorage.Tools
  19. local Vibro = game.ServerStorage.Tools["Electroblade Training Sword"]
  20. local Pike = game.ServerStorage.Tools['Lightsaber Pike']
  21. local Lightsaber = game.ServerStorage.Tools['Lightsaber']
  22.  
  23.  
  24.  
  25. -- Sith Tool Giver for Adept+ --
  26.  
  27. function onPlayerSpawned(Player)
  28.     if Player:GetRankInGroup(MainSith) >= 4 then
  29.         Lightsaber:Clone().Parent = Player.Backpack
  30.     end
  31. end
  32.  
  33. game.Players.PlayerAdded:connect(function(player)
  34.     player.CharacterAdded:connect(function()
  35.         onPlayerSpawned(player)
  36.     end)
  37. end)
  38.  
  39.  -- Sith Tool Giver for Acolyte- --
  40.  
  41. function onPlayerSpawned(Player) -- Sith Acolyte-
  42.     if Player:GetRankInGroup(MainSith) >= 1 then
  43.         Vibro:Clone().Parent = Player.Backpack
  44.     end
  45. end
  46.  
  47. game.Players.PlayerAdded:connect(function(player)
  48.     player.CharacterAdded:connect(function()
  49.         onPlayerSpawned(player)
  50.     end)
  51. end)
  52.  
  53.  
  54. -- DHG --
  55. function onPlayerSpawned(Player)
  56.     if Player:GetRankInGroup(GuardGroup) <= 5 then
  57.         Pike:Clone().Parent = Player.Backpack
  58.        
  59.     end
  60. end
  61.  
  62. game.Players.PlayerAdded:connect(function(player)
  63.     player.CharacterAdded:connect(function()
  64.         onPlayerSpawned(player)
  65.     end)
  66. end)
  67.  
  68.  -- Inquisitors --
  69. function onPlayerSpawned(Player)
  70.     if Player:GetRankInGroup(IQGroup) >= 1 then
  71.         Lightsaber:Clone().Parent = Player.Backpack
  72.     end
  73. end
  74.  
  75. game.Players.PlayerAdded:connect(function(player)
  76.     player.CharacterAdded:connect(function()
  77.         onPlayerSpawned(player)
  78.     end)
  79. end)
  80.  
  81.  -- Imperial Intelligence --
  82.  
  83. function onPlayerSpawned(Player)
  84.     if Player:GetRankInGroup(IIgroup) >= 1 then
  85.         Lightsaber:Clone().Parent = Player.Backpack
  86.     end
  87. end
  88.  
  89. game.Players.PlayerAdded:connect(function(player)
  90.     player.CharacterAdded:connect(function()
  91.         onPlayerSpawned(player)
  92.     end)
  93. end)
  94.  
  95.  -- Dark Council --
  96.  
  97.  
  98. function onPlayerSpawned(Player)
  99.     if Player:GetRankInGroup(DCGroup) >= 1 then
  100.         Lightsaber:Clone().Parent = Player.Backpack
  101.        
  102.     end
  103. end
  104.  
  105. game.Players.PlayerAdded:connect(function(player)
  106.     player.CharacterAdded:connect(function()
  107.         onPlayerSpawned(player)
  108.     end)
  109. end)
  110.  
  111. function onPlayerSpawned(Player) -- for Visitors
  112.     if Player.TeamColor == BrickColor.new('Bright green') then
  113.     Lightsaber:Destroy().Parent = Player.Backpack
  114.     end
  115. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement