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

Loading rbxcdn image file?

Asked by 8 years ago

My code works, but the I can't load the image file from the URL. Please help me.

local hs=game:service'HttpService'
local url='http://roblox-proxy.cf/headshot-thumbnail/json?userId=1&width=180&height=180'
local html=hs:GetAsync(url, false)
local jsontable=hs:JSONDecode(html)

local asset=jsontable["Url"]

script.Parent.Image = asset

Output:

20:58:24.747 - Image failed to load Players.Player1.PlayerGui.ScreenGui.ImageLabel.Image : http://t4.rbxcdn.com/61b0fbd421e702bcd04781ce867abef10 because Request failed

1
You can't load anything from the t? CDN domains because it would allow the use of unmoderated assets in games. User#6546 35 — 8y

Answer this question