https://gyazo.com/d379c787ac5b98721b1f106c709daf99 So all I want to do is when you touch the lava it teleports you to the purple brick ive tried alot of free scripts but they all require it to be a part but the lava is in a model so it doesnt work please help!
COMMUNITY QUESTION
Hello can someone help me with a teleport script?
1 answer
Setup:
- So grab an invisible part and stretch it over the lava and set its transparency to 1 and make sure its anchored.
- 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
- 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.
