How would I make a script that does something like mountain of the gods?

I want to create a game simalir to “mountain of the gods” but my only struggle right now is how must I create the extra places, and remove them or something after everyone left the server?

1 Like

can you please define “extra places”?

also try researching and coming up with a script before asking for help

1 Like

use game.players:playerleft or smt like that and check if theres no players (is it no players alive or in the game??)

1 Like

i have tried researching, and by extra places i mean how games like blockate, wubby, piggy, etc have it with their sub places, basically creating places with asset manager, but i need to be able to manage them with a script and delete them when noone is in the server, and if they are set to “public” in game, you can access them via a interactable in the lobby

i know how i would generally do that, but i need to know how to create the “sub place” and manage it

ohhh i know get what you mean, i thought about the extra island pieces,
i dont know if it would work optimizedly but try using messagingservice for plrs joining and leaving, and the “sub places” from those games are like reserved servers from another place of the game i think

1 Like

so far i feel like i have a general idea on how i would create the place with using AssetService, but i will try to experiment more with it when i wake up, im gonna go to sleep for now. Thanks again! Gn!

edit: the sub places are from using AssetService:CreatePlaceAsync(placeID, newPlaceName) or something like that

good night, i feel quite intrigued for knowing how you progress, and i would love to play the game! i really like mount of the gods

1 Like

You can use TeleportService:ReserveServer to create a private, reserved server, and use TeleportService:TeleportAsync to teleport players to that server.

To check if a server is a reserved server, you can use:

game.PrivateServerId ~= "" and game.PrivateServerOwnerId == 0

From there, you can use DataStores to load and save player data.

1 Like

how would i be able to check if the server is reserved through the lobby though, and how would i be able to delete the server if everyone leaves (if it is a public server)?

i think messaging service would be the best way to make that, try making a function that returns the information such as plrs in game, the access code, etc. to the lobby using messaging service

2 Likes

Like @MysterySoulESPYT said, you would have to use MessagingService to create a list of all open reserved servers.

Roblox does this automatically, so you don’t have to worry about it.

1 Like

Thanks again for the help! Going to now work on the actual game generation system.

1 Like