SavePlaceAsync() Saves to studio. But not to the actual game?

  1. What do you want to achieve? Keep it simple and clear!

So im basically trying to recreate the old feature called “Personal servers”. And i found out about this API.

  1. What is the issue? Include screenshots / videos if possible!

My issue is that. Even though the game creates a new place + saves the changes to studio. It doesnt load in all the objects to the game when you try to join it. Its like they are in studio. But not inside the actual game?

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried looking at some dev forum posts. And the wiki to see if there is something i missed or doing wrong?. But i couldnt find anything that would help me.

My other idea was to use datastores. But im not sure if thats a good option since they have limits?. Any help would be really appreciated :grinning:

(These lines were just a test. So i know its not the best)
Code i use to create a new place:

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(PLAYER)
	local PLACE = game.AssetService:CreatePlaceAsync(PLAYER.Name.."'S SERVER 4", game.PlaceId, "This is a test server")
	game["Teleport Service"]:Teleport(PLACE, PLAYER)
end)

type or paste code here

type or paste code here

Assuming you are using it correctly, it should be working as intended as I use it in my remake of personal servers called Free Build.
If you could provide a code sample on how your saving the place, that would help greatly!

1 Like

Alright. This is the code i use to save. Once again this was a test

game.Players.PlayerRemoving:Connect(function()
	game.AssetService:SavePlaceAsync()
end)

Does it work if you try using it on :BindToClose()
I save my places on Free Build every 5 minutes and on BindToClose. Not sure if this will help as your issue sounds like it is saving but not loading but worth a try I guess. The functions are working for me.

1 Like

Still doesnt work

game:BindToClose(function()
	game.AssetService:SavePlaceAsync()
end)

It saves in studio as you can see here. But doesnt load in or change when you join the game


Last pic was meant to say game*

Are you teleporting to the same place you created each time or creating a new one every time? If you’re making a new one each time, that’d explain it.

1 Like

No im joining the server from the “Created places” tab :frowning_face:

Joining via created places will put you into the spawn place not that exact place unfortunately.

1 Like

Ooooooohhhhh that was the problem. Thanks :grinning:

1 Like

Glad I could help resolve the issue, best of luck remaking personal servers! :grin: They’ve been driving me insane working on them for the last 6 years! :joy:

1 Like