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

How do you make a teleporter that is only one way?

I want to make a part where if you step on it you teleport to another part, like any teleporter but the difference is the second teleporter doesn't teleport you back to the first teleporter, it's only the first teleporter that teleports you to the second teleporter. How do I make such a thing?

1 comment

0

Is it to teleport to another game?

1 answer

✓ Accepted answer

Make 2 parts and call one of them something like "Destination"

Inside the other part, make a script and paste this

Comments are there to help you

local destination = workspace.Destination -- Change "Destination" to your destination part or keep it that way if your part is called "Destination"

script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChildWhichIsA("Humanoid") then
		local hmr = hit.Parent:FindFirstChild("HumanoidRootPart")
		hmr.CFrame = destination.CFrame + Vector3.new(0,2,0) -- Moves the player to the destination and places the player 2 studs above it
	end
end)

2 comments

0

Thank you sooo much!!

0

No problem! :-)

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