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

Team specific tools ?

Asked by 8 years ago

I want to give a specific tool to a player when they join a specific team similar to starterPack . How can i do this ?

1 answer

Log in to vote
0
Answered by
fdfxd 50
8 years ago

put this in a local script, in starterGUI

--Change toolblue and toolred to your weapons

player = game.Players.LocalPlayer

toolblue =   game.ReplicatedStorage.ToolBlue --Put your weapon for blue here, I am just going to assume they are both in replicated storage

toolred = game.ReplicatedStorage.ToolBlue --Put your weapon for red here, I am just going to assume they are both in replicated storage


function add()

if player.TeamColor == "Bright blue" then
toolblue:Clone().Parent = player.Backpack
end

if player.TeamColor == "Bright red" then
toolred:Clone().Parent = player.Backpack
end

end


game.Players.PlayerAdded:connect(add)
Ad

Answer this question