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.