In short
Studio can test teleports in Test and Team Test: when a server Script calls TeleportService:TeleportAsync() to another place of the same experience, the destination opens as a new test server. Anything else is refused with one of these messages: the old methods (Teleport, TeleportToPlaceInstance, TeleportPartyAsync), teleports from a LocalScript, places of other experiences, and VIP servers. Switch to TeleportAsync on the server, and test the rest in a live server.
What the message means
ServerScriptService.Portal:8: Only TeleportAsync is supported during play testing.
Other forms of the same message:
Teleports to places of other experiences are not supported during play testing.Only teleports sent by the server are supported during play testingTeleports to VIP servers are not supported during play testing.Cannot Teleport in the Roblox Studio.
In a live game these teleports may work fine. The messages only mean Studio cannot simulate them, so the error is about testing, not always about your code.
The old teleport methods still work in live servers for now, but Roblox recommends TeleportAsync, and it is the only one Studio can test.
Causes and fixes
Three things cause this error in practice. Each one below has the smallest code that triggers it, then the fix.
- An old teleport method
- The teleport starts in a LocalScript
- The destination is in another experience, or a VIP server
An old teleport method
TeleportService:Teleport() and its relatives are refused during play testing with Only TeleportAsync is supported during play testing.
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local PLACE_ID = 1234567890
Players.PlayerAdded:Connect(function(player)
task.wait(10)
TeleportService:Teleport(PLACE_ID, player)
end)
Call TeleportAsync with a list of players, in a pcall because teleports can fail.
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local PLACE_ID = 1234567890
Players.PlayerAdded:Connect(function(player: Player)
task.wait(10)
local ok, err = pcall(function()
return TeleportService:TeleportAsync(PLACE_ID, { player })
end)
if not ok then
warn("Teleport failed:", err)
end
end)
The teleport starts in a LocalScript
A LocalScript teleporting its own player is refused in testing with Only teleports sent by the server are supported during play testing.
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local button = script.Parent :: TextButton
button.Activated:Connect(function()
TeleportService:Teleport(1234567890, Players.LocalPlayer)
end)
Have the button fire a RemoteEvent, and teleport from a server Script. The server can also check the request first.
-- the LocalScript in the button
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local requestTeleport = ReplicatedStorage:WaitForChild("RequestTeleport") :: RemoteEvent
local button = script.Parent :: TextButton
button.Activated:Connect(function()
requestTeleport:FireServer()
end)
-- a Script in ServerScriptService:
-- requestTeleport.OnServerEvent:Connect(function(player)
-- pcall(TeleportService.TeleportAsync, TeleportService, PLACE_ID, { player })
-- end)
The destination is in another experience, or a VIP server
Studio only opens places that share the starting place's GameId, and test servers have no owner, so VIP server teleports cannot work there.
local TeleportService = game:GetService("TeleportService")
local OTHER_GAME_PLACE = 987654321 -- a place of a different experience
local function send(player: Player)
TeleportService:TeleportAsync(OTHER_GAME_PLACE, { player })
end
Test these in a live server: publish, then join from the Roblox app. In Studio, skip the teleport so the rest of your code can be tested.
local TeleportService = game:GetService("TeleportService")
local RunService = game:GetService("RunService")
local OTHER_GAME_PLACE = 987654321
local function send(player: Player)
if RunService:IsStudio() then
print("Would teleport", player.Name, "to", OTHER_GAME_PLACE)
return
end
local ok, err = pcall(function()
return TeleportService:TeleportAsync(OTHER_GAME_PLACE, { player })
end)
if not ok then
warn("Teleport failed:", err)
end
end
game:GetService("Players").PlayerAdded:Connect(send)
Teleports to experiences you do not own also need Allow Third Party Teleports on, under File, Experience Settings, Security.
Fix it in your place
Paste the error, RoCode fixes it in your place
Copy the line from Output and paste it here. RoCode opens the script it names in the place you have open in Studio, works out which of the causes above it is, and edits the code there instead of handing you a snippet to paste.
RoCode is an AI agent for Roblox Studio: it reads the scripts in the place you have open, finds the line and edits it there, and every change is an undo point. It runs on Windows or macOS with a desktop browser. Free to start, with free credits every day.
How to find the line that causes it
- Open Output (Window menu, or the Script tab), clear it with Ctrl+K (⌘K on Mac), and press Play.
- Find the first red line. It starts with the script's place in the Explorer and the line number, such as
ServerScriptService.Shop:12:. - Click the red line. Studio opens that script with the cursor on the failing line.
- Read the lines between
Stack BeginandStack Endunder it: they list the calls that led there, newest first, so you can see which function called the broken one. - Still not sure which value is wrong? Add
print(typeof(x), x)just above the line, or set a breakpoint on it and read the values in the Watch window.
Questions
Can you test teleports in Roblox Studio?
Yes, in Test and Team Test, if a server Script calls TeleportAsync to a place of the same experience. The destination opens as a new test server, with the debugger and breakpoints working there too.
Why does my teleport work in game but not in Studio?
It probably uses an old method, starts on the client, or goes to another experience or a VIP server. Those are only refused while play testing.
Do I need to publish first?
The destination place has to exist in the same experience, so add it in the Asset Manager or on the Creator Dashboard and publish it once.
Can RoCode fix it?
Yes. Paste the Output line into RoCode. It moves the teleport to the server and switches it to TeleportAsync in your open place.
Sources and further reading
- Roblox Creator Docs: teleport between places. Test teleports in Studio, and its known limitations
- Roblox Creator Docs: TeleportService:TeleportAsync
- Roblox Creator Docs: RunService:IsStudio
How the code was checked: every block marked Fixed passes Luau's strict type checker against Roblox's API definitions (luau-lsp, 12 November 2026), and every block marked Breaks compiles and fails only when it runs. The message wording was checked against the strings in Roblox Studio itself (macOS build installed on 12 November 2026) on 12 November 2026. What Studio supports was checked against the Roblox teleport documentation the same day. A type check catches misspelt APIs and wrong types, not game logic, so playtest in Studio before you publish.