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

Why am I not teleporting?

I am trying to make a menu for my game, Star Wars Saberfront. However I get this error:

20:21:48.751 - httpGet http://assetgame.roblox.comGame/PlaceLauncher.ashx?request=RequestGame&placeId=330893648&isPartyLeader=false&gender=&isTeleport=true failed. Trying again. Error: http://assetgame.roblox.comGame/PlaceLauncher.ashx?request=RequestGame&placeId=330893648&isPartyLeader=false&gender=&isTeleport=true: Trust check failed, The operation completed successfully. . Elapsed time: 0 20:21:48.794 - Teleport exception: http://assetgame.roblox.comGame/PlaceLauncher.ashx?request=RequestGame&placeId=330893648&isPartyLeader=false&gender=&isTeleport=true: Trust check failed, The operation completed successfully.

And this is my code:

script.Parent.MouseButton1Click:connect(function()
	game:GetService("TeleportService"):Teleport(330893648,game.Players.LocalPlayer)
end)

What do I do?

1 comment

0

You used game.Players.LocalPlayer, can you use teleport in a local script?

1 answer

✓ Accepted answer
TP = game:service("TeleportService")
placeID = 330893648

function onClicked()
TP:Teleport(placeID)
end

script.Parent.MouseButton1Click:connect(onClicked)

Make sure it's in a LocalScript

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