Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with teleport script?(Not teleporting)

I am trying to make all the players teleport to one place in the map but it won't work.

teleport() = function
       game.Workspace.players.Vector3 = Vector3.new(0,0,0)
end
teleport()

1 answer

✓ Accepted answer
pos = Vector3.new(0,0,0) -- Moves the player to the position
teleport = function()
	for i,player in pairs(game.Players:GetPlayers()) do
		if player.Character then
			player.Character:MoveTo(pos))
		end
	end
end
wait()
teleport ()

1 comment

0

thx

This discussion is preserved as it was. New answers, comments, and votes are closed.