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
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.
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)