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

Way to get AssetVersionID from HttpService GET request?

Asked by 3 years ago

Would there be a way to do this?

code sample cuz not request, genuine question about service

local Http = game:GetService("HttpService")

Http:GetAsync("asset id plugin thingy link")

1 answer

Log in to vote
2
Answered by 3 years ago

Yes, quite simple infact:

First, lets make a function to bypass the roblox website HttpService block using rprxy.xyz:

local function CreateProxy(STR)
   return STR = STR:gsub("roblox.com", "rprxy.xyz") -- makes sure it requests through proxy.
end

Next we'll make the main part of the script:

local HttpService = game:GetService("HttpService")
local AssetVAIDL = CreateProxy("https://www.roblox.com/studio/plugins/info?assetId=AssetID")

-- replace AssetVAIDL variable with your assetID

HttpService:GetAsync(AssetVAIDL)

Full Script:

local function CreateProxy(STR)
   return STR = STR:gsub("roblox.com", "rprxy.xyz") -- makes sure it requests through proxy.
end

local HttpService = game:GetService("HttpService")
local AssetVAIDL = CreateProxy("https://www.roblox.com/studio/plugins/info?assetId=AssetID")

HttpService:GetAsync(AssetVAIDL)
0
Thanks. GoreDemons 215 — 3y
Ad

Answer this question