#Help with teleporting to another place
1 messages · Page 1 of 1 (latest)
Brother
what do you expect us to do
with no script
are we meant to be mind readers?
Chill
give us the script lad
Just a moment
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local GAME_PLACE_ID = 85700934212
local function startGame(playersInElevator)
local success, reservedServerCode = pcall(function()
return TeleportService:ReserveServer(GAME_PLACE_ID)
end)
if not success then
warn("Errore nella riserva del server privato:", reservedServerCode)
return
end
TeleportService:TeleportToPrivateServer(
GAME_PLACE_ID,
reservedServerCode,
playersInElevator
)
end
workspace:WaitForChild("StartPart").Touched:Connect(function(hit)
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player then
startGame({player})
end
end)
Here the script
@quick cradle @viscid raven can u help me now?
[Teleport] ReserveServer failed: HTTP 403 (Forbidden)
Ik this, it still doesnt work
why are you reserving a server
priv server reserves a server for you
local function startGame(playersInElevator)
local success, reservedServerCode = pcall(function()
return TeleportService:ReserveServer(GAME_PLACE_ID)
end)
priv servers do reserve a server
run it
does it give the same error
whats the max player amount in elevator
I know i have to activate certain settings, like ID and publish games. Do I have to do other?
For now 1
then just telport them to the normal game
with 1 player max
but i dont know about more people
The real match must be private
Are you sure you're getting the place Id correctly
Yes 100%
Idk do i have to publish the game AND the place?
I did it, idk what to do
Yes, you need to publish the place
** You are now Level 9! **
Ye
Already done
I tested the script in one of my games, and it worked perfectly fine. I think you're just not getting the placeId correctly
is this placeid 2 different experiences, or is it 2 games in one experience
Really? I checked like 10 times
Go into asset manager, places, then right click and copy the place id of the place you want it to tp to
I wemt on view > asset manager > add new place > copy ID
ok
are the permission correct
Public
the placeid is public, right
Yh
ok ill keep troubleshooting
does it freeze you when you touch the part
or can you move
Ok 👌
I can walk. Ik if it freezes it is loading, right?
yes
This is the first time implementing this mechanic
So, just to make sure even though the other guy already asked, you are inside the actual game on roblox when testing this, and not studio, correct
And im figuring out what's wrong
you arent checking if thats an actual player, ceck if its the humanoid
???
Does this change anything?
There's no problem with that lol
It's anchored
Yes, but it checks to make sure that it's a player
^
Im on roblox, not studio
im really nudging that theres a syntax error but idk
and the place you're teleporting to is in the same experience as the place you're teleporting from?
I copied and pasted the script directly and it worked without issue
Yes, the place is created from the main experience
I'm honestly really confused. By all logic it should be working fine. The script has no problems, you're getting the id correctly, everything's published, and you're testing it in roblox
Maybe u have certain settings already active?
Is green, activated
yes
It shouldn't need to be active as long as they're under the same experience
What if I deselect the third part thing?
try
Ok
well im also going to troubleshot since im also getting the error
Yes, you're going to get the error when testing in studio
Guys thank you for the help. Everything works now. If i will release it, you will be the first ones to test it 🙂
@viscid raven @warped sphinx
sure