I need to teleport to the heist place, but I get an error saying 'HTTP 403 (Forbidden)'. 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(script.Parent.Parent.Parent.Missions.Slot1.MissionPlaceId.Value)
	local Plrs = {script.Parent.Parent.PlayersVal.HostId.Value, script.Parent.Parent.PlayersVal.Player1Id.Value, script.Parent.Parent.PlayersVal.Player12d.Value, script.Parent.Parent.PlayersVal.Player3Id.Value}
	TeleportService:TeleportToPrivateServer(script.Parent.Parent.Parent.Missions.Slot1.MissionPlaceId.Value, Server, Plrs)
	game.ReplicatedStorage.PlayerStats[Player.Name].SlotUsing.Value.Visible = false
end)

What's wrong? I need to know as the first version of Assault Criminals is nearly out! https://web.roblox.com/games/5657867373/Assault-Criminals Thanks!

1 comment

0

I've got a few questions here, first why don't you use the parameters of the events to get the players instead of using what you have there? Second, why do you not have use variables for those long paths? And lastly, are you sure the place you are teleporting to is in the game and not a separate game itself?