Teleporting Between Places dont work

Hi good morning. I have made a teleport to a level. Its just a test not finished. When I go on the part which should teleport the player, then the game freezes or shut down. I have made a little video

This is my script


I hope someone can help me.
nice regards from austria
sebastian

1 Like

A Game can be composed of multiple Place IDs. Check that you have the correct Place ID for the destination you are trying to teleport the player to and that you are not trying to teleport them back to exactly the same Place ID that they started off from.

1 Like

Try this!
local TeleportService = game:GetService(“TeleportService”)
local gameID = 5184228915 ---- Game Id

function onTouched(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
TeleportService:Teleport(gameID, player)
end
end

script.Parent.Touched:connect(onTouched)
Remember you need put script on part teleport.*
I hope thats help you :smile:

1 Like

I have looked at the script and id. Is not the same

Have tried this dont work game still freeze :confused:

You must chek Id your game if is correct replace this script.

1 Like

I used this my script is working.

1 Like

If this is not working for you I don’t know but this script work for me.

1 Like

It seems its not because of the game settings, well maybe the teleported place is broken? I Guess

2 Likes

Yes maybe because I give them script that’s work for me.

1 Like

Indeed. The scripts in the teleporting place may break that makes the game appear like a blank sky

Yes maybe they broken because I tested that script and that’s work for me.

1 Like

Let me share my script that works for this. I had a problem similar to this where I could not teleport.
local pad = script.Parent
local teleportTo = workspace.TeleportLocation — change this to the name of the object that you want to teleport to in the workspace.

pad.Touched:connect(function(hit)
local humanoid = hit.Parent:FindFirstChild(“Humanoid”)
if humanoid then
local humanoidRoot = hit.Parent:FindFirstChild(“HumanoidRootPart”)
if humanoidRoot then
humanoidRoot.CFrame = teleportTo.CFrame
end
end
end)

Thank you for all the answers. I tried it again on a test game. I get the error 773. All my worlds are public

What do you mean it’s not work?

When I go on the teleport part. Roblox freezes, shutdown or I get the error 773.

I will need time to fix this error. I will make teleport part and script that if is work I will with honor give you that video😉

1 Like

Thank you that is really nice :smiley:

No problem so wait for message.

1 Like

That means the place is private or closed.