How to make a team spawn with tools?

I’m making a soccer game and I want to have different teams “referee” “player” etc. How can I make it so when they refresh their character they will spawn with tools?

So: When a referee teams himself and resets his character he will spawn with his tools (whistle, yellow card, red card) etc.

You can use this in a server script for that.

local tool = -- path to your tool
local team = game.Teams.-- path to your team
game.Players.PlayerAdded:Connect(function(player)
     if player.Team == team then
          tool:Clone().Parent = player.Backpack
     end
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.