Using roblox api to get place version

  1. What do you want to achieve? I want to get Place Version using roblox api

  2. What is the issue? I can’t find anything that could help me do it

  3. What solutions have you tried so far? I found assets api but it returns
    The custom error module does not recognize this error. when I try to use it to get game version

here what I tried to use so far
https://api.roblox.com/v2/assets/{id}/versions

You don’t even need to send a GET request. It’s a property.

1 Like

I want to make a softshutdown script that tells what version game is gonna update to

OK. And the link you provided doesn’t work?

Ye it says The custom error module does not recognize this error.

What is your script that causes the error?

Its the api itself that says that

You can try it out here https://api.roblox.com/v2/assets/12302078743/versions

1 Like

Just go to that link it will say that

Without doing any HTTP requests, you can save the current server version using Datastores (only if the current version is lower than the saved one) and if it’s not, soft shutdown the server.

I want to make a softshutdown script that tells what version game is gonna update to

like this

I don’t know maybe it errors because of roblox servers being down rn

Why not just use current version, and add one? Unless you’re pushing updates faster than you can shutdown it shouldn’t be an issue.

local NewVersion = game.PlaceVersion + 1

this what I want to do
image
that why I need new version and not just + 1

Pretty sure this is just because Roblox is having issues at the moment.
It should work as you intend after issues get resolved…

Ye that what I was thinking too
I will wait till roblox fixes the errors and then try