local parent = script.Parent
function steppedOn(part)
if game.Players:GetPlayerFromCharacter(parent) then
parent.TeamColor = "Bright Green"
parent.Humanoid.Health = 0
end
end
script.Parent.Touched:connect(steppedOn)
So basically what I am trying to get it to do is when it is touched it changes your player to Team: "Level 2", and the Team Color is Bright Green. And then kills the player so it will get re-spawned at the next level. But I get no errors, and it doesn't seem to work. But If I take out the
parent.TeamColor = "Bright Green"
then it will kill the player. So I can't really find out what is wrong with it. And help would be appreciated. :)
Thanks, Awesomespyhacker12

3 comments
where do you have the script
In a part in workspace
Isn't this a property of teams that is built into studio?