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

Hello can someone help me with a teleport script?

1 answer

Setup:

  1. So grab an invisible part and stretch it over the lava and set its transparency to 1 and make sure its anchored.


  1. Put this script in the part

function OnTouch(hit) --Function named "OnTouch" | Parameter 'hit' to contain the reference to the colliding object when the event fires.
    hit.Parent:MoveTo(game.Workspace.TP.Position)
end
script.Parent.Touched:connect(OnTouch) --Connection line

  1. Name the purple brick TP Or Simply change the name of TP in the script into the name of the purple brick.

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