Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is there a way to use SavePlaceAsync() that doesn't return errors?

Asked by 6 years ago
Edited 6 years ago

I want to save the place when the remote event is called. Currently I get the error HTTP 403 (HTTP/1.1 403 Forbidden) [Yes I am testing in-game not in studio] [Yes 'Allow this place to be copied as a template using the Create Place API in your game.' and 'Allow this place to be updated using the Save Place API in your game.' are enabled.] [Yes this is a server script] [The script is in ServerScriptService] [It is not a group game]

01local ReplicatedStorage = game:GetService("ReplicatedStorage")
0202  local saveWorldEvent = Instance.new("RemoteEvent", ReplicatedStorage)
0303  saveWorldEvent.Name = "SaveWorldEvent"
0404  local canSave = game.ServerStorage.canSave
0505  
0606  function savePlace(player)
0707      print("Save Requested")
0808      if canSave.Value == true then
0909          game:GetService("AssetService"):SavePlaceAsync()
1010          canSave.Value = false
1111          local chat = game:GetService("Chat")
1212          chat:Chat(script.Parent, "Saving World")
1313          print("World Saving")
1414          wait(3)
1515          chat:Chat(script.Parent, "World Saved")
View all 26 lines...
1
btw the numbers in the code are not actually there Oxygen4Lyfe 408 — 6y
0
Is it a group game? From what I understand it hasn’t been working on group games. ABK2017 406 — 6y
1
nope Oxygen4Lyfe 408 — 6y
0
CreatePlaceAsync and Datastore were recommended work arounds ABK2017 406 — 6y
View all comments (8 more)
1
so like create a new place instead of saving the old one? Oxygen4Lyfe 408 — 6y
0
This is a multi-world game with a defined Start place? ABK2017 406 — 6y
1
yes Oxygen4Lyfe 408 — 6y
1
Im not sure if this will help but the game is https://www.roblox.com/games/2220861768/Lavation-Early-Access Oxygen4Lyfe 408 — 6y
0
Basically, and transfer the data via datastore/UpdateAsync ABK2017 406 — 6y
1
But like im trying to save a place with thousands of parts that are randomly generated so would data stores even work for that? Oxygen4Lyfe 408 — 6y
0
Wait does your game have a webhook? Does it ref Discord? ABK2017 406 — 6y
1
it does not ref discord and i dont even know what a webhook is Oxygen4Lyfe 408 — 6y

1 answer

Log in to vote
1
Answered by 4 years ago

nevermind this is old

Ad

Answer this question