Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HttpService = game:GetService("HttpService")
- local Studio = game:GetService("StudioService")
- local placeId = INSERT_PLACE_ID_HERE -- Replace with the place ID of the game you want to download
- local fileName = "downloaded_game.rbxlx" -- Replace with the name you want to save the downloaded file as
- local success, result = pcall(function()
- return HttpService:RequestAsync({
- Url = "https://assetdelivery.roblox.com/v1/asset?id=" .. tostring(placeId),
- Method = "GET",
- })
- end)
- if success then
- local body = result.Body
- if body then
- local file = io.open(fileName, "w")
- file:write(body)
- file:close()
- local success, result = pcall(function()
- return Studio:DecompilePlaceAsync(fileName)
- end)
- if success then
- print("Successfully downloaded and decompiled the game!")
- else
- print("Failed to decompile the game: " .. tostring(result))
- end
- else
- print("Failed to download the game: no response body")
- end
- else
- print("Failed to download the game: " .. tostring(result))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement