Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Universe teleportation: Not working?

function OnClick()
game:GetService("TeleportService"):Teleport(259945232,game.Players.LocalPlayer)	
	
	
	
	
	
end
script.Parent.ClickDetector.MouseClick:connect(OnClick)

I have gotten no errors and it only works in test mode on a NORMAL script, not a Local.

1 answer

While using the Teleport function in a LocalScript, you don't need to supply the player.

function OnClick()
	game:GetService("TeleportService"):Teleport(259945232) 
end

script.Parent.ClickDetector.MouseClick:connect(OnClick)

3 comments

1

Dang it Goulstem, you beat me. I was eating :C

0

YOUUUR TOOO SLOOOW

0

I think I found the problem

This discussion is preserved as it was. New answers, comments, and votes are closed.