Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

HTTP 400 (BadRequest) How to solve?

Asked by 3 years ago

The first version of Assault Criminals, https://web.roblox.com/games/5657867373/Assault-Criminals, is almost ready! But there's a big flaw. The Start Game script is not working. Here's my code:

local TeleportService = game:GetService("TeleportService")
script.Parent.MouseButton1Click:Connect(function()
    local Player = script.Parent.Parent.Parent.Parent.Parent
    local Players = game.Players
    local Server = TeleportService:ReserveServer(game.ReplicatedStorage.PlayerStats[Player.Name].SlotUsing.Value.MissionPlaceId.Value)
TeleportService:TeleportToPrivateServer(script.Parent.Parent.Parent.Missions.Slot1.MissionPlaceId.Value, Server, {game.Players[script.Parent.Parent.PlayersVal.HostName.Value], game.Players[script.Parent.Parent.PlayersVal.Player1Name.Value], game.Players[script.Parent.Parent.PlayersVal.Player2Name.Value], game.Players[script.Parent.Parent.PlayersVal.Player3Name.Value]})
    game.ReplicatedStorage.PlayerStats[Player.Name].SlotUsing.Value.Visible = false
end)

The Error happens on Line 5. How do I fix it? Please follow my game as it is almost ready!

0
I have almost no idea how reserved servers work but i think when reserving it, you should use Id of a place you want to reserve the server on, it must be in the same universe. imKirda 4491 — 3y
0
The error happens on line 5 but what's the error? NotTheChara 191 — 3y

Answer this question