is it possible to make a button that when you touch it it changes your team? If yes then is this correct??
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then -- if a humanoid exists, then
humanoid.SetTeam("Fire")
end
end
script.Parent.Touched:connect(onTouch)

4 comments
yes
is this correct?
'If yes then is this correct?' - can you not test it yourself?
Good