Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Team specific tools ?

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

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.