Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- MPS = game:GetService("MarketplaceService")
- local ServerStorage = game:GetService('ServerStorage')
- local Tools = game.ServerStorage.Tools
- Tools:WaitForChild('Lightsaber')
- Tools:WaitForChild('Lightsaber Pike')
- Tools:WaitForChild('Doubleblade')
- Tools:WaitForChild('GoldHelios')
- Tools:WaitForChild('GoldHelios2')
- Tools:WaitForChild('Electroblade Training Sword')
- local MainSith = 4007344
- local GuardGroup = 4007790
- local IQGroup = 4285116
- local IIgroup = 3591124
- local DCGroup = 4007799
- local ServerStorage = game.ServerStorage
- local Tools = game.ServerStorage.Tools
- local Vibro = game.ServerStorage.Tools["Electroblade Training Sword"]
- local Pike = game.ServerStorage.Tools['Lightsaber Pike']
- local Lightsaber = game.ServerStorage.Tools['Lightsaber']
- -- Sith Tool Giver for Adept+ --
- function onPlayerSpawned(Player)
- if Player:GetRankInGroup(MainSith) >= 4 then
- Lightsaber:Clone().Parent = Player.Backpack
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.CharacterAdded:connect(function()
- onPlayerSpawned(player)
- end)
- end)
- -- Sith Tool Giver for Acolyte- --
- function onPlayerSpawned(Player) -- Sith Acolyte-
- if Player:GetRankInGroup(MainSith) >= 1 then
- Vibro:Clone().Parent = Player.Backpack
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.CharacterAdded:connect(function()
- onPlayerSpawned(player)
- end)
- end)
- -- DHG --
- function onPlayerSpawned(Player)
- if Player:GetRankInGroup(GuardGroup) <= 5 then
- Pike:Clone().Parent = Player.Backpack
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.CharacterAdded:connect(function()
- onPlayerSpawned(player)
- end)
- end)
- -- Inquisitors --
- function onPlayerSpawned(Player)
- if Player:GetRankInGroup(IQGroup) >= 1 then
- Lightsaber:Clone().Parent = Player.Backpack
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.CharacterAdded:connect(function()
- onPlayerSpawned(player)
- end)
- end)
- -- Imperial Intelligence --
- function onPlayerSpawned(Player)
- if Player:GetRankInGroup(IIgroup) >= 1 then
- Lightsaber:Clone().Parent = Player.Backpack
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.CharacterAdded:connect(function()
- onPlayerSpawned(player)
- end)
- end)
- -- Dark Council --
- function onPlayerSpawned(Player)
- if Player:GetRankInGroup(DCGroup) >= 1 then
- Lightsaber:Clone().Parent = Player.Backpack
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.CharacterAdded:connect(function()
- onPlayerSpawned(player)
- end)
- end)
- function onPlayerSpawned(Player) -- for Visitors
- if Player.TeamColor == BrickColor.new('Bright green') then
- Lightsaber:Destroy().Parent = Player.Backpack
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement