im making this team changer brick but i want to change team if you are an other specific team
here the script
local player = game:GetService("Players").LocalPlayer
script.Parent.Touched:Connect(function(hit)
local user = game.Players:GetPlayerFromCharacter(hit.Parent)
if user.Team == 'clandestin' then
user.Team = game:GetService('Teams'):FindFirstChild('cittadino')
end
end)
there is no error showing

2 comments
Is this a local script or server script?
a script in a brick