I am making a game and I want it that every person that joins a certain team will receive a tool
local ItemToGive = game.ServerStorage.Tag --Tool I want to be given
local Handle = script.Parent:WaitForChild("Handle")
local TeamName = "Assassins" --Give the tool to everyone on this team
local NewTeam = game.Teams:FindFirstChild(TeamName)
Handle.Touched:Connect(function(partHit)
if partHit.Parent:FindFirstChild("Humanoid") and partHit.Parent ~= script.Parent.Parent then
local Tagged = partHit.Parent
game.Players:GetPlayerFromCharacter(Tagged).TeamColor = NewTeam.TeamColor
end
end)

1 comment
Where is your script?