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

How do I teleport a player to another part of the map?

Hello! I recently started making a game (which won't be popular but with my friends and the forums I can get a few visits on it). I'm trying to make a place to test some sort of map system (like more games has). I can't use place teleporters like in AR because I don-t have OBC and as far as I understand, the place you assign to the teleporter must be active. Any idea how I can make that? Thanks!

1 answer

function touch(hit)
	if hit.Parent:FindFirstChild("Humanoid") ~= nil then
		char = hit.Parent
		char.Torso.CFrame = workspace.Part.CFrame * CFrame.new(0, 0, 0) -- Part is the part you want the character to be teleported to.

5 comments

0

Forgot to end it then put script.Parent.Touched:connect(touch)

0

It doesn't work. Neither the ROBLOX wiki tutorial. So for sure it's my problem.

0

Could you post the script you have now on a question?

0

function touch(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then char = hit.Parent char.Torso.CFrame = workspace.Part.CFrame * CFrame.new(1612, 20.5, 1426) -- Part is the part you want the character to be teleported to. script.Parent.Touched:connect(touch)

0

Part isn't a part, Make a part in the workspace called Destination then instead of workspace.Part.CFrame * CFrame.new(1612,20.5,1426) put char.Torso.CFrame = workspace.Destination.CFrame * CFrame.new(0, 0, 0)

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