#weird error when teleporting???

1 messages · Page 1 of 1 (latest)

magic spindle
#

when i try to use a place teleporting script, it doesn't work and gives me this error
this is strange because all of these scripts (ive tried copying working scripts from other games of mine but those dont work too) were working perfectly before and weren't updated in ages

magic spindle
#

oops sorry forgot about that

local TeleportService = game:GetService("TeleportService")
local gameID = 18717886488
 
function onTouched(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if player then
        TeleportService:Teleport(gameID, player)
    end
end
 
script.Parent.Touched:connect(onTouched)


lofty saddle
#

Also BTW you can't do it in studio, try ingame

magic spindle
#

ive tried that too, it gives me the attempted to enter a place that is restricted error

#

lemme get a screenshot

echo tide
#

permissions to teleport to that place are not provided

#

you need permisions to actually teleport from one place to the next

magic spindle