So I want a script that will make a player change team when they stand on a brick. I've asked so many people and tried tonnes of things, but none of them seem to work.
Help please?
So I want a script that will make a player change team when they stand on a brick. I've asked so many people and tried tonnes of things, but none of them seem to work.
Help please?
You might want to read this.
You can/should be able to use a team oriented spawn location to change a player's team as it is touched, but this can be done through script as well - using the Touched event.
local sp = script.Parent
sp.Touched:connect(function(hit)
local player =
game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
if hit.Parent:FindFirstChild("Humanoid") and player then
player.TeamColor = BrickColor.new("Bright green")
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.