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

How do you give a certian tool to a team

I had a glimpse of an idea, but I tried it and roblox crashed. Can anyone help?

3 answers

local tool = game.ReplicatedStorage["ToolName"]
local team = BrickColor.new("Bright red")

for i,v in pairs(game.Players:GetPlayers()) do 
	if v.TeamColor == team then
		tool:Clone().Parent = v.Backpack
		tool:Clone().Parent = v.StarterGear
	end
end

for loops

TeamColor

I wild check it out and it's legit! Thank you.

1 comment

0

Please refrain from using answers to reply to another user's answer. That's what comments are for.

If you don't want to do it by scripting, you could simply drag the tool into the team. Of course, the team would be placed in Teams.

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