HTTP 403 (Forbidden)

Does anyone know how to fix this?

2 Likes

You can’t test TeleportService in studio. It only functions in live games.

4 Likes

It does not say an error that you can’t test it in studio

1 Like

It’s this

local tpService = game:GetService("TeleportService")
local Players = game.Players

function Teleport() 
   for i,v in pairs(game.Players:GetPlayers()) do 
      local Server tpService:ReserveServer(game.PlaceId)
      tpService:TeleportToPrivateServer(game.PlaceId, server, v)
   end
end

script.Parent.ClickDetcetor.MouseClick:Connect(Teleport)
3 Likes

If you don’t believe me, perhaps you may believe the developer hub. Read the “Studio Limitation” section.

1 Like

Most things are disabled in studio and I recommend you to test it on the roblox client it self.

1 Like

Well, It actually worked on Client but can’t test properly because i have only one pc and opening 2 clients make the first one close, Thank you so much all :smile:

1 Like