So I have a place in my game, and a part that teleports you to that place when touched. But that message appears when I try to test it in the roblox app. Teleport script:

local TS = game:GetService(¨TeleportService¨)

local placeID = 1234567890

local function onTouch(Part)
local player = game.Players:GetPlayerFromCharacter(Part.Parent)
if player then
TS:Teleport(placeID, player)
end
end
script.Parent.Touched:Connect(onTouch)

anyone know why I am getting this message?

3 comments

0

This is not a code error. https://roblox.fandom.com/wiki/Error

0

Might be that roblox is shutting down the server when your teleporting to it. Just a guess though

0

@mybituploads You can post this in an answer, but you can still comment that then.