Teleport error (773, 769)

Hello. I have created a place in Asset Manager and wanted to teleport when player touches a part. But it gives error 769 in Studio and error 773 in Roblox for players that do not own game.
I have enabled everything in my Game Setting including Third Party Teleports but it seems to not work. Any help is appreciated


game.Workspace["3v3JoinTouch"].Touched:Connect(function(hit)
	game:GetService("TeleportService"):Teleport(14075873140, game.Players:GetPlayerFromCharacter(hit.Parent))
end)

When you use a touched event, any part can collide with “3v3JoinTouch.” This can include a part that is not part of a character, which may be causing the teleport error. To fix this, do an if statement for if hit.Parent:FindFirstChild(“Humanoid”). Then, do another if statement for if game.Players:GetPlayerFromCharacter(hit.Parent).
This will make sure that the script won’t attempt to teleport some random base part, but a player that actually does touch the part.

1 Like

You should note that Teleports to subplaces won’t work in Studio. You need to test all this in the actual Roblox client.

[Expand for full solution]

2 Likes

No, it did not work. I still get error 769

1 Like

Then I’d test it in a Roblox client, like what @Deb0rahAliWilliams said above.

No, it does not work even for owner. It gives error 773 (Attempt to teleport to a restricted place).

The teleport code is in a script which is in ServerScriptService

Are you certain your subplace is currently published and public?

This works, I always checked in Studio and it did not work but after publishing and checking in a roblox client, it worked! Thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.