Hello, in my game I have a teleport system which allows you to 1v1 on a private server too. It used to work, I didn’t change anything on TeleportScript but suddently, it stopped working. All PlaceId’s are same and I checked. Here’s what happens:
- I tried with 2,3,4,5 player servers and they just don’t teleport, I have some prints when teleport starts to happen and they get executed correctly.
- In studio, as always, it says HTTP 403 (Forbidden) which shows that server took the request.
Anyone has ideas for this? Does same thing happen to you?
Script:
local TeleportService = game:GetService("TeleportService")
local RepStorage = game:GetService("ReplicatedStorage")
local TeleportDirecter = RepStorage.BindableEvents.TeleportDirecter
TeleportDirecter.Event:Connect(function(creator, plr2)
local reservedServerCode = TeleportService:ReserveServer(4830564901)
TeleportService:TeleportToPrivateServer(4830564901, reservedServerCode, creator,"WaitingSpawn",true)
TeleportService:TeleportToPrivateServer(4830564901, reservedServerCode, plr2,"WaitingSpawn",false)
end)
Note: I added the false and true values recently it if’s causing the problem. Also seperating teleports may be causing it too because it was on the same line before.
This true or false’s are sender and accepters.
Update: It started to work when I revert it to:
local TeleportService = game:GetService("TeleportService")
local RepStorage = game:GetService("ReplicatedStorage")
local TeleportDirecter = RepStorage.BindableEvents.TeleportDirecter
TeleportDirecter.Event:Connect(function(creator, plr2)
local players = {creator,plr2}
local reservedServerCode = TeleportService:ReserveServer(4830564901)
TeleportService:TeleportToPrivateServer(4830564901, reservedServerCode,players)
end)
But I definetely need to send different datas with players.