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
01 | game.Players.PlayerAdded:connect( function (player) |
02 | player.CharacterAdded:connect( function (character) |
03 | --All you have to do is copy from here, |
04 | if player.TeamColor = = BrickColor.new( "New Yeller" ) then --Change New Yeller to the cop team color. |
05 | repeat wait() until player:FindFirstChild( "Backpack" ) |
06 | game.ServerStorage [ "GUNNAMEHERE" ] :Clone().Parent = player.Backpack --Change the gun name of course. |
07 | end |
08 | --To here if you want to make multiple teams have different weapons. |
09 | end ) |
10 | end ) |