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

Teleport pearl script help

Tool = script.Parent
Tool.Activated:connect(function()
Player = Tool.Parent.Parent
game:GetService("TeleportService"):Teleport(148922198, Player)
end)

This is what I have done, it doesn´t works, What I want to do is a tool with the shape of a sphere that will teleport me to a universe. Please help me ;(

1 comment

0

Since the Tool is script.Parent, I think you put one extra Parent on Player, take one off.

1 answer

Assuming this is a LocalScript in a tool then this code should work

Tool = script.Parent
Tool.Activated:connect(function()
	Player = game:GetService("Players").LocalPlayer
	game:GetService("TeleportService"):Teleport(148922198, Player)
end)

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