Can't teleport to another place

Currently, I am making a campaign game where you can select separate chapters, and the corresponding buttons would teleport the player to the chapter place. However, I am encountering an abundance of problems when teleporting. This includes:

ID-17 Error
Client Initiated Disconnect (COULDN’T FIND ANY POST OR VIDEO ABOUT THIS ONE)
image

Endless loading

I have edited many settings in my computer itself, such as drivers, control panel, and WIFI, but none works. I also re-installed the Roblox client, but still nothing. Therefore, I’m assuming this is a bug from Roblox’s end, a Place setting isn’t right, or my script has something wrong in it.

local selectsound = game.Workspace.Select
local TeleportService = game:GetService("TeleportService")
local player = game.Players.LocalPlayer

script.Parent.MouseEnter:Connect(function() 
	selectsound:Play()
end)

script.Parent.MouseButton1Click:Connect(function() 
	sound:Play()
	TeleportService:Teleport(8740381975, player)
end)

Any help appreciated.

1 Like

did you allow 3rd party teleports, sometimes thats the problem, or is this like a game inside a game scenario?

maybe try teleport async?

This is a place inside a game. Enabling 3rd party teleports did not work.
image

local sound = game.Workspace.ButtongoBRR

local selectsound = game.Workspace.Select

local TeleportService = game:GetService("TeleportService")

local player = game.Players.LocalPlayer

local PLACE_ID = 8751541050

script.Parent.MouseEnter:Connect(function()

selectsound:Play()

end)

script.Parent.MouseButton1Click:Connect(function()

sound:Play()

game:GetService("TeleportService"):Teleport(PLACE_ID, player)

end)

This script worked, somehow. Resolved.

1 Like

Your code looks fine, but I’d disable the script and try disabling other scripts one-by-one to find what is disconnecting you.

Other questions you might need to answer:

  • When you wrote the script, did the problem occur?

  • Are there other scripts in your game that may trigger client disconnect?

https://www.roblox.com/games/8740381975/Grey-Peak
https://www.roblox.com/games/8751541050/Loading-Living-Quarters

You used two different place IDs.