I have a click detector and a Vector3Value in the parent. This script should teleport you to the coordinates of the vector3value:
DestinationPos = script.Parent.TeleportTo.Value
print("Teleport Script loaded")
local Door = script.Parent
function onClicked(hit)
print("Teleport Hit")
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
-- a human has touched this teleport!
print("Human touched teleport")
-- Change the values in this next line to where you want it 2 teleport you to.
hit.Parent.Torso.CFrame = CFrame.new(DestinationPos)
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
Hmm, I think it may be line 14, can you CFrame a torso?