Hey guys, I'm trying to teleport every player to a part but NOT me but idk how to. Heres what I have:
while wait() do
for _, player in pairs(game.Players:GetPlayers()) do player.Character.HumanoidRootPart.CFrame = game.Workspace.kah.CFrame end end
So this teleports all players including me to a part thats named kah. But I want it to teleport all OTHER players. NOT me.
If you can help, thanks!
I'm not giving you any script because i want you to learn how to script. If i just gave you a script you are not going to learn from it.
Also, Why did u put your script inside a quote like this?
-- It should be like this
This should work (another way to do it)
while wait() do for _, plr in pairs(game.Players:GetChildren()) do local char = plr.Character if char.Name ~= "BiIIyMarchiafava" then char:MoveTo(game.Workspace.kah.Position) end end end