Scripts:

[Client]

local part = game.Workspace:WaitForChild("ServerTouch")

part.Touched:Connect(function(hit)
	game.ReplicatedStorage:WaitForChild("TeleportRemote"):FireServer()
end)

[Server]

game.ReplicatedStorage:WaitForChild("TeleportRemote").OnServerEvent:Connect(function(plr)
	print("#@4")
	local part = game.Workspace:WaitForChild("ServerTouch")
    local char = plr.Character or plr.ChildAdded:Wait()
    local teleportService = game:GetService("TeleportService")

    local reservation = teleportService:ReserveServer(3641236167)

    teleportService:TeleportToPrivateServer(3641236167,reservation,{plr})
end)

How can I fix that?

4 comments

0

Make sure that you have access to that server, or every player in-game has access to that server.

0

I added the place to my game and now I have error "HTTP 0 (HTTP 400)

0

make sure you are not in studio

0

now I am getting error "HTTP 0 (HTTP 403 (HTTP 403 (Forbidden)))"