Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't the player go on the other team?

Asked by 6 years ago
game.Workspace.Players.Teams = Team     

function onTouch(part)
    game.Workspace:GetChildren("Normal Spawn")
    game.Players.Teams = Teal Tower
end

game.Workspace.Touched:connect(onTouch)





0
I was thinking that you should add a SpawnLocation name the that SpawnLocation "Normal Spawn" than go into it's properties and enable AllowTeamChangeOnTouch than if the player touches it, it will team them that. FPSVision -14 — 6y

1 answer

Log in to vote
0
Answered by
FPSVision -14
6 years ago

--What I mean't by this is ( I was thinking that you should add a SpawnLocation name the that --SpawnLocation "Normal Spawn" than go into it's properties and enable --AllowTeamChangeOnTouch than if the player touches it, it will team them that.)

--Either Enable That Property Or Use This Script -- Insert A Script Into The SpawnLocation

game.Workspace.SpawnLocation.AllowTeamChangeOnTouch = true --It Has To Be A SpawnLocation though you can rename the spawnlocation to "Normal Spawn"
it would be like this
game.Workspace.NormalSpawn.AllowTeamChangeOnTouch = true -- Between The NormalSpawn I believe you can't have a space in the middle.

--Also The Error Is You Don't Have A Function For Touched (I Believe)

Ad

Answer this question