function onTouch(part)
if part.Parent:FindFirstChild("Humanoid") then
local piggy = game.Players:GetPlayerFromCharacter(part.Parent)
if piggy.TeamColor ~= BrickColor.new("Institutional white") then
piggy.Neutral = false
piggy.TeamColor = BrickColor.new("Institutional white")
end
end
end
script.Parent.Touched:connect(onTouch)
for i,v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(Vector3.new(108, 11.19, -29))
end
wait(1)
How can I get this so its just in one script, no part needed and it changes the players team back to Lobby and moves them back to those coords

13 comments
Change line 4 to "if piggy.TeamColor ~= BrickColor.new'Institutional White' then"
You forgot an and
2 actually
It made me back to insti white, But, It says my team was Neutral, I want it to say Lobby, cause I have three teams, Killer, Runner, and Lobby
pffft minor details lol, and if it says the team is Neutral, then just set Player.Neutral to false. Teams are annoying, they should make it also by name, not by colour.
Ok so, where is Player.Neutral, and also, your pretty good if you only started a month ago?
I changed the script, but, there still is Neutral?
I know whats wrong, its a lowercase W with White
Okay great :) also thanks.
It now works :D Thanks edit it to lowercase W and I'll accept answer
Copy my script and change the W to w
Also do you know of a way that I can convert that so it works from just inside a script, like have a wait(2) above and below it, so it moves players to a place on the map. I'll show you what I have for it and explain in higher detail in the question
I have editted, think you could help out?