Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 2 years ago

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?

0
Is it to teleport to another game? EmJay10101 9 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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)
0
Thank you sooo much!! Ghostinee 27 — 2y
0
No problem! :-) Mathilinium 112 — 2y
Ad

Answer this question