local Part = script.Parent --Part to get touched
local Tool = ????? --The tool you want to give them
local TeamColor = "BrightBlue" --Team color here
Part.Touched:connect(function(hit)
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
if Player and Player.TeamColor == BrickColor.new(TeamColor) then
Tool:Clone().Parent = Player.Backpack
Tool:Clone().Parent = Player.StarterGear
end
end)
Where do I put the tool for it to give it to someone on the same team as the giver is set to? The tool i am trying to give is OCA Nano. Thanks!

3 comments
Thanks this worked!
Actually how do i fix this? When i touch it it rapidly gives me the tool can i set it to wait like 10 seconds before it gives another? I tried using wait(100) but then the script doesn't work?
Check the edit