I am no able to see the images

hello robloxians,
so i tried to make a minigame using ui but i am cant see the images here is the script:

--// Tables //--
local Icons = {
	Icon1 = "rbxassetid://".."4928135736"; --Bomb
	Icon2 = "rbxassetid://".."4928136735"; --Bubble
};

--// Game Handler //--

local Score = 0
local RealScore = 0
local Ended = false
local Bubble = false
local Bomb = false

script.Parent.BackgroundFrame.Back1.Back2.Bomb.Click.MouseButton1Click:Connect(function(GivePoint)
	if script.Parent.BackgroundFrame.Back1.Back2.Bomb.Image == Icons.Icon1 then
		Ended = true
		script.Parent.BackgroundFrame.Back1.Back2.Bomb.Visible = false
		Score = 0
	end
	
	if script.Parent.BackgroundFrame.Back1.Back2.Bomb.Image == Icons.Icon2 then
		Score = Score + 1.5
		script.Parent.BackgroundFrame.Back1.Back2.Bomb.Visible = false
	end
	
end)

while wait(0.5) do
	script.Parent.BackgroundFrame.Back1.Back2.Score.Text = Score
	script.Parent.BackgroundFrame.Back1.Back2.Bomb.Image = Icons["Icon".. math.random(1,2)]
	script.Parent.BackgroundFrame.Back1.Back2.Bomb.Visible = true
end

thanks for help,
REALINONOOBYT.

1 Like

I don’t understand the reason for this syntax. Having "rbxassetid://4928135736" will work just as fine. Are there any errors in your output?

no there are no errors in my output, just this:

(i tried remove this but is still same)
image

You must be using the Decal id and not the Image id. To get the image id place your ids into an actual decal object in studio and it should automatically convert it for you.

1 Like

thanks @A9X is now works. :slight_smile:

1 Like