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

How do I fix this SavePlace API code?

So I made a script a couple of months ago to save whatever I build online I found out that it broke yesterday.

for i = 1, math.huge do
	wait(30)
	game:SavePlace(Enum.SaveFilter.SaveAll)
end

What it does it is supposed to my place after 30 seconds. My console is spitting out HTTP 403 (Invalid API for updating the place) I have both SavePlace and CreatePlace API enabled

1 answer

You're trying to do an infinite loop, and there is a much simpler way:

while wait(30) do
	game:SavePlace(Enum.SaveFilter.SaveAll)
end

After a bit of digging, I found that you have to have this setting enabled. Let me know if you already do.

6 comments

0

Thanks but in my place the console is saying: HTTP 403 (Invalid API for updating the place)

0

I do.

0

Is the place a personal server?

0

No. One thing is that this code has worked in the past.

0

Try switching to a Personal Server and see if that fixed it. I'm not sure why it doesn't

0

I don't have BC

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