How do you make it so certain teams automatically spawn with certain guns.
For example: Everyone gets things Cop gets pistol and the things Robber gets knife and the things visitor gets DS and the things
How do you make it so certain teams automatically spawn with certain guns.
For example: Everyone gets things Cop gets pistol and the things Robber gets knife and the things visitor gets DS and the things
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
--All you have to do is copy from here,
if player.TeamColor == BrickColor.new("New Yeller") then --Change New Yeller to the cop team color.
repeat wait() until player:FindFirstChild("Backpack")
game.ServerStorage["GUNNAMEHERE"]:Clone().Parent = player.Backpack --Change the gun name of course.
end
--To here if you want to make multiple teams have different weapons.
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thanks =D