I have created a Script that teleports a Player to the Position (0, 0, 0). I would like the player to have to click it with a ClickDetector. How do I change the Script?
function onTouched(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
print("Human touched teleport")
hit.Parent.Torso.CFrame = CFrame.new(0, 0, 0)
end
end
script.Parent.Touched:connect(onTouched)

4 comments
Use your keyboard. :)
You obviously either have a low class of intelligence, a high level of laziness, or an extraordinarily low amount of need to help.
I'm no genius, but I think he was just joking.
It is annoying though.