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

Is it possible to load an httpservice image off the internet and load it onto a decal or gui image?

Asked by 6 years ago

So today im learning about httpservice, lol

and I was messing around with it to see if i could get my youtube channels thumbnail to become a gui image through httpservice

I have a feeling this is impossible but idk

This is what I got

local HS = game:GetService"HttpService"

while wait(2) do
    local resp = HS:GetAsync("https://yt3.ggpht.com/-A3aVzD8ja9I/AAAAAAAAAAI/AAAAAAAAATc/lYEaNNBSbZc/s288-mo-c-c0xffffffff-rj-k-no/photo.jpg", true)
    script.Parent.Image = resp
end

And i know i could just manually make it a decal and put it in but if i can do this the way i mentioned then that would give a lot of possibility

1 answer

Log in to vote
1
Answered by
Vmena 87
6 years ago
Edited 6 years ago

You are not able to upload images from the internet using HTTP service as the moderators are not able to make sure that your image is appropriate before it is displayed, this is why decals were created.

Ad

Answer this question