Can someone tell me how to fix this?
Here’s the main code:
![image](/secure-media-uploads/uploads/original/4X/d/1/f/d1fbc2b58254977037bf1fbf66bee859223559d3.png)
Can you please indicate which line the error is on?
placeId is a string, but it should be a number. Where are you defining placeId?
there on 3rd line.
Get rid of the quotation marks so that it’s a regular number.
local placeId = 11548398788
doing that shows up error 733
That place: local placeId = 11548398788
Its yours? inside the gamefile?
print the code got from TS:ReserveServer(placeId)
before teleporting
yes its a place. why would it say placeid? And how would you print the code?
When you using ReserveServer()
it returns a “password” in order to join the place.
You give a Number (the PlaceId) to ReserveServer(PlaceNumberID)
thats the “address” of the place, a number to know what place you wanna create a reserved server.
Then when teleporting the players you use this: TeleportToPrivateServer(PlaceNumberID, PASSWORD, ListOfPlayersToTeleport)
You should have access to the PlaceID you wanna teleport players, (“own it”/be able to teleport players there), you use the Password got from ReserveServer(PlaceNumberID)
result, and thats it
To print the code/password in output console just add this line after this:
local code = TS:ReserveServer(placeId)
warn(code)
this comes up, is this supposed to be private?
its also spamming more
use the password to teleport to private server.
do i put password on there or leave PASSWORD?
Thats the password to acces the reserved server that you created when using local code = TS:ReserveServer(placeId)
The variable “code” now contains that string of characters, the password.
That code variable should be used inside this to teleport the players:
TeleportToPrivateServer(The Place Id in your game, code, ListOfPlayers)
That passwords spamming, probably are because you are on a loop trying to teleport the players until the list is empty.
You dont want to create a new password each wait(), you only need one password to teleport all players to the reserved server. Dont run the teleporting function more than once.
If you want to be sure all players got teleport and none failed and left behind, you should use TeleportInitFailed that is triggered when a teleport try failed, so you can retry to teleport that player
what does passwords have to do with fixing error 733?
I wanted you to show us the password in console to see if you are really getting one, cause that error 733 should not happen unless you are not using the right password, or trying to teleport to a place that you dont have rights, but the conversation got extended cause I had to explain all this password stuff so you can understand what I meant :v
Probably your script is not using the right password, an evidence could be the other passwords spamming in console… which password is using when trying to teleport the player?
That password mixup could be the reason why your teleport is not working
You should get rid of the loop when teleporting, to avoid this issue. Why not pasting the code in here so we can edit it a little?
local function updateGui()
billboard.Frame.players.Text = "Players: " ..#list.. "/5" -- Change the number 16 according to the Max Player who want to be teleported.
billboard2.Frame.players.Text = "Players: " ..#list.. "/5"
end
local function removeFromList(character)
for i=1,#list do
if list[i] == character.Name then
table.remove(list,i)
updateGui()
end
end
end
local function teleportPlayers()
if #list > 0 then
billboard.Frame.Status.Text = "TELEPORTING"
billboard.Frame.Status.TextColor3 = Color3.fromRGB(255, 0, 0)
billboard2.Frame.Status.Text = "TELEPORTING"
billboard2.Frame.Status.TextColor3 = Color3.fromRGB(255, 0, 0)
local playersToTeleport = {}
local teleportTime = 0
for i=1,#list do
if game.Players:findFirstChild(list[i]) then
table.insert(playersToTeleport,game.Players:findFirstChild(list[i]))
TransitionEvent:FireClient(game.Players:findFirstChild(list[i]))
else
table.remove(list,i)
end
end
local code = TS:ReserveServer(placeId)
teleporting = true
TS:TeleportToPrivateServer(placeId,code,playersToTeleport)
repeat wait() until #list <= 0
billboard.Frame.Status.Text = "READY"
billboard.Frame.Status.TextColor3 = Color3.fromRGB(255, 0, 0)
billboard2.Frame.Status.Text = "READY"
billboard2.Frame.Status.TextColor3 = Color3.fromRGB(255, 0, 0)
teleporting = false
end
end
script.Parent.Gate.Touched:Connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if teleporting == false then
local char = hit.Parent
local player = game.Players:FindFirstChild(char.Name)
local alreadyExists = false
for i=1,#list do
if list[i] == char.Name then
alreadyExists = true
end
end
if alreadyExists == false then
if #list < 2 then -- Many Players have been teleported.
table.insert(list,char.Name)
char.PrimaryPart.CFrame = spawnTeleport.CFrame
updateGui()
leaveGuiEvent:FireClient(player)
end
player.CharacterRemoving:connect(function(character)
removeFromList(character)
end)
end
end
end
end)
leaveGuiEvent.OnServerEvent:Connect(function(player)
if player.Character then
player.Character.HumanoidRootPart.Anchored = false
wait()
player.Character.Humanoid.Jump = true
wait()
player.Character:MoveTo(game.Workspace.leaveRoomPart.Position)
removeFromList(player.Character)
end
end)
while wait() do
timer = 15 -- Wait time before teleport change to whawtever you want it to be
for i=1,timer do
timer = timer - 1
billboard.Frame.time.Text = timer
billboard2.Frame.time.Text = timer
wait(1)
end
teleportPlayers()
end
btw i got this from a free modelled kit, so of course there would be errors.