#I need help with TeleportService
1 messages · Page 1 of 1 (latest)
local TeleportService = game:GetService("TeleportService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local teleportRequest = ReplicatedStorage:WaitForChild("TeleportRequest")
teleportRequest.OnServerEvent:Connect(function(player, reservedServerCode)
local placeId = 110910872236270
if reservedServerCode then
print("Teleporting player " .. player.Name .. " to reserved server: " .. reservedServerCode)
TeleportService:TeleportToPrivateServer(placeId, reservedServerCode, {player})
else
warn("No reservedServerCode found!")
end
end)
please help me on this as i have been trying to fix this for multiple weeks
it wont let me send the code for my interpreter sadly
so u gave empty reserved server code
¯_(ツ)_/¯
that wasnt used before
what? but the codes match perfectly down to the letter
and the function also shows it correctly
it is confirmed 3 times
one by the client grabbing it from the servers info file
one bu the interpreter that assembles the servers info file
and one by that connect script
what are you trying to achieve?