I want to give a specific tool to a player when they join a specific team similar to starterPack . How can i do this ?
put this in a local script, in starterGUI
01 | --Change toolblue and toolred to your weapons |
02 |
03 | player = game.Players.LocalPlayer |
04 |
05 | toolblue = game.ReplicatedStorage.ToolBlue --Put your weapon for blue here, I am just going to assume they are both in replicated storage |
06 |
07 | toolred = game.ReplicatedStorage.ToolBlue --Put your weapon for red here, I am just going to assume they are both in replicated storage |
08 |
09 |
10 | function add() |
11 |
12 | if player.TeamColor = = "Bright blue" then |
13 | toolblue:Clone().Parent = player.Backpack |
14 | end |
15 |