Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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]

local ReplicatedStorage = game:GetService("ReplicatedStorage")
02	local saveWorldEvent = Instance.new("RemoteEvent", ReplicatedStorage)
03	saveWorldEvent.Name = "SaveWorldEvent"
04	local canSave = game.ServerStorage.canSave
05	 
06	function savePlace(player)
07	    print("Save Requested")
08	    if canSave.Value == true then
09	        game:GetService("AssetService"):SavePlaceAsync()
10	        canSave.Value = false
11	        local chat = game:GetService("Chat")
12	        chat:Chat(script.Parent, "Saving World")
13	        print("World Saving")
14	        wait(3)
15	        chat:Chat(script.Parent, "World Saved")
16	        print("World Saved")
17	        wait(17)
18	        canSave.Value = true
19	    elseif canSave.Value == false then
20	        local chat = game:GetService("Chat")
21	        chat:Chat(script.Parent, "Please wait, worlds can only be saved once every 20 seconds.")
22	        print("Can not save during cooldown.")
23	    end
24	end
25	 
26	saveWorldEvent.OnServerEvent:Connect(savePlace)

12 comments

1

btw the numbers in the code are not actually there

0

Is it a group game? From what I understand it hasn’t been working on group games.

1

nope

0

CreatePlaceAsync and Datastore were recommended work arounds

1

so like create a new place instead of saving the old one?

0

This is a multi-world game with a defined Start place?

1

yes

1

Im not sure if this will help but the game is https://www.roblox.com/games/2220861768/Lavation-Early-Access

0

Basically, and transfer the data via datastore/UpdateAsync

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?

0

Wait does your game have a webhook? Does it ref Discord?

1

it does not ref discord and i dont even know what a webhook is

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.