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

How do I fix this SavePlace API code?

Asked by 9 years ago

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

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

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.

0
Thanks but in my place the console is saying: HTTP 403 (Invalid API for updating the place) Manwich1 5 — 9y
0
I do. Manwich1 5 — 9y
0
Is the place a personal server? adark 5487 — 9y
0
No. One thing is that this code has worked in the past. Manwich1 5 — 9y
View all comments (2 more)
0
Try switching to a Personal Server and see if that fixed it. I'm not sure why it doesn't adark 5487 — 9y
0
I don't have BC Manwich1 5 — 9y
Ad

Answer this question