Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a different teams spawn with different guns?

Asked by 11 years ago

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

1 answer

Log in to vote
1
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
11 years ago
01game.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)
10end)
0
Thanks =D CoolLightningNinja 25 — 11y
Ad

Answer this question