I have enabled Https request and my game is in a group
local CountdownServer = game.ReplicatedStorage.Parties.NormalServer.Countdown
local ServerStatus = game.ReplicatedStorage.Parties.NormalServer.Stats
local TeleportService = game:GetService("TeleportService")
--function ChangeServer()
--code = TS:ReserveServer(5070728964)
--end
while true do
if game.ReplicatedStorage.Parties.NormalServer.PlayersNumber.Value >= 1 then
local Countdown = 30
ServerStatus.Value = "Enable"
repeat
Countdown = Countdown - 1
CountdownServer.Value = Countdown
wait(1)
until Countdown == 0
ServerStatus.Value = "Teleporting"
Server = TeleportService:ReserveServer(5070728964) -- ERROR HERE
--ChangeServer()
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
if player.InNormalParty.Value == true then
TeleportService:TeleportToPrivateServer(5070728964, Server, player)
print("Teleporint "..player.Name)
end
end
end
end
wait(1)
end
Ignore the 403 error, it’s not helpful in telling you what’s going on.
Firstly, is the server you’re trying to reserve in the same Game (“universe”) ?
If not, then it might be down to TeleportService being unreliable as per usual - it goes down so frequently (for days at a time) it’s a bad idea to rely on it at all except for tech demos.
Yeah, universe is the old term for game in the Roblox vocabulary. I think it’s a lot better, so I use it.
A game has lots of places inside of it. It’s far less intuitive than the universe/world mental picture.
If it’s in the same universe then I suspect it’s just TeleportService being funky. Try again in a day or two.
I fixed it, i added some lines of codes and boom, it worked, here is the lines
local CountdownServer = game.ReplicatedStorage.Parties.NormalServer.Countdown
local ServerStatus = game.ReplicatedStorage.Parties.NormalServer.Stats
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local DSS = game:GetService("DataStoreService")
local DS = DSS:GetGlobalDataStore()
--function ChangeServer()
--code = TS:ReserveServer(5070728964)
--end
while true do
if game.ReplicatedStorage.Parties.NormalServer.PlayersNumber.Value >= 1 then
local Countdown = 30
ServerStatus.Value = "Enable"
repeat
Countdown = Countdown - 1
CountdownServer.Value = Countdown
wait(1)
until Countdown == 0
ServerStatus.Value = "Teleporting"
Server = TeleportService:ReserveServer(5070728964)
DS:SetAsync("ReservedServer",Server)
--ChangeServer()
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
if player.InNormalParty.Value == true then
TeleportService:TeleportToPrivateServer(5070728964, Server, {player})
print("Teleporint "..player.Name)
end
end
end
end
wait(1)
end