Hello everyone who reading this, hoping you have good day, so i wanted to make a thing, that teleports you from the HUB to MAIN GAME. Im making an game where you need to escape in 7 days or else you die because of lack of food and water. But its not the point. I just dont know HOW. Can you help me some?
No, i need NOT when he dies, i need when he stays on a part for 15 seconds, the everyone who stayed on this part they get teleported too to the place needed.
Nvm, sorry, you just named the link not only when he dies. I think i will use it. Thanks anyway.
ALSO NOTICE PLEASE, I WANT TO MAKE THE PLAYERS WHO STAYING ON SAME PART TELEPORT TO THEIR SERVER, BUT AFTER THEY TELEPORT, NOBODY CAN TELEPORT TO THEM, SO PLEASE USE OWN SCRIPTS. Okay i guess now everybody knows.
TeleportService:ReserveServer(placeid)
returns code
and
TeleportService:TeleportToPrivateServer(placeid,code,players)
needs code
I used both, didnt worked yet.
Is players a table?
Im talking about reserved servers.
Yeah i just pasted it. [But i changed the place ID]
Do you get any errors in the output?
Nope, it just does nothing⦠Also, for real.
Your script should look like this if youre doing it right:
local TeleportService = game:GetService('TeleportService')
local placeid = 0
local code = TeleportService:ReserveServer(placeid)
function TeleportPlayers(players)
return TeleportService:TeleportToPrivateServer(placeid,code,players)
end
Nice. Thanks for whole script now, i guess i will try this. But question, can you make it when player TOUCHES the part, and stays on it for 15 seconds, he teleports with other players to 1 server, because im Animator, not scripter usually.
You could try part.Touched and part.TouchEnded events.
HTTP 403 (Forbidden)
idk how to fix
You cant teleport in studio, did you try it ingame?
Ok i will try. Thanks i guess.