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 10 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
10 years ago
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)
0
Thanks =D CoolLightningNinja 25 — 10y
Ad

Answer this question