This script seems easier than it is to generate. Sadly I have yet to find the full problem.
function OnClick(mouse)
game:GetService("TeleportService"):Teleport(259945232)
end
script.Parent.ClickDetector.MouseClick:connect(OnClick)
It is in a normal script, I've tried it in a Local and it failed as well. Any suggestions?

2 comments
How did you make the text smaller?
Use Hashtags. I used 6. One # is huge, 6 is small.