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 9 years ago

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

1local hs=game:service'HttpService'
3local html=hs:GetAsync(url, false)
4local jsontable=hs:JSONDecode(html)
5 
6local asset=jsontable["Url"]
7 
8script.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 — 9y

Answer this question