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

Team specific tools ?

Asked by 9 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
9 years ago

put this in a local script, in starterGUI

01--Change toolblue and toolred to your weapons
02 
03player = game.Players.LocalPlayer
04 
05toolblue =   game.ReplicatedStorage.ToolBlue --Put your weapon for blue here, I am just going to assume they are both in replicated storage
06 
07toolred = game.ReplicatedStorage.ToolBlue --Put your weapon for red here, I am just going to assume they are both in replicated storage
08 
09 
10function add()
11 
12if player.TeamColor == "Bright blue" then
13toolblue:Clone().Parent = player.Backpack
14end
15 
View all 23 lines...
Ad

Answer this question