Scripting Help, cannot get ImageVisible

I am not sure why the image ín script 2 isn’t getting visible. If you could help it would be very kind!

So thats the first script :

local LoadingSmart = Smart.Screen.Screen.UI.Main.Utils.Loading
Main.Start.Container.Images.MouseButton1Click:Connect(function()

LoadingSmart.Visible = true
end)

Thats the second one :

local LoadingChecker = Smartboard.Screen.Screen.UI.Main.Utils.Loading
local LoadingCheckDevice = Device.Screen.DeviceUI.System.Utils.Loading

if LoadingChecker.Visible == true then
 LoadingCheckDevice.Visible = true
end

I have checked if both existed and they do.
Thank you!

2 Likes

You’re changing this once and only once, at the start of the script.

You’ll need something like this:

LoadingChecker:GetPropertyChangedSignal("Visible"):Connect(function()
    LoadingCheckDevice.Visible = LoadingChecker.Visible
end)
2 Likes

Thank you so much! It has worked!!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.