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

How do I fix this Teleporting script?

Asked by 9 years ago

I edited this script from using ClickDetector, but it is not working. I also want to add words when they are getting teleported. Like instead of teleporting... it should say like teleporting to this place.

s = game:service("TeleportService")
id = 152594797

function onClicked()
s:Teleport(id)
end

script.Parent.ClickDetector:connect(onClicked)

Hope you understand what I am asking/saying.

Answer this question