--###----------[[SERVICES]]----------###--
local Players = game:GetService("Players")



--###----------[[VARIABLES]]----------###--
local Player = Players.LocalPlayer

local PlayerGui = Player:WaitForChild("PlayerGui")

local RollButton = PlayerGui:WaitForChild("RollButton")
local BuFoRol = RollButton:WaitForChild("BuFoRol")


local ImageBMS = {
	5109081025,
	5109084202,
	5109086559,
	5109089712,
	5109093394,
	5109095852;
}


local ImageLabel = script.Parent



--###----------[[FUNCTIONS]]----------###--
local function SetRandomImage()
	local RandomImageID = ImageBMS[Random.new(tick()):NextInteger(1, #ImageBMS)]
	---------------
	ImageLabel.Image = "http://www.roblox.com/asset/?id="..RandomImageID
end



--###----------[[SETUP]]----------###--
BuFoRol.MouseButton1Click:Connect(SetRandomImage)

This is the error i get : Image "https://assetdelivery.roblox.com/v1/asset?id=5109081025" failed to load in "(the scripts parent)" : Request failed (this happens with the other id's too)

I have tried every way to get these, but nothing works (I.E rbxassetid://, URL in string, etc)

The images are not moderated, and i do own them, and its not because of roblox servers.

This is in a LocalScript and I am very sorry but old questions that arent on the front page just dont get noticed.

7 comments

0

try using rbxassetid:// instead of http://www.roblox.om/asset/?id=

0

ok.

0

same error

0

actually try testing it through NORMAL roblox, the above comment wasn't meant to fix your problem

0

what?

0

in regular roblox app it come with same erro

0

i dont think local scripts can set a decal, if you are trying to only load a decal for a client. do :fireclient() on a serverevent