while true do wait(1)
if script.Parent.Parent.Parent.Workspace.raimbowfairyegg.Value.Value == 1 then
script.Parent.ImageLabel.Visible = true
end
end
✓ ANSWER ACCEPTED
How do i make an imagelabel transparent when a IntValue is 1?
2 answers
✓ Accepted answer
You want to listen to any changes made to your Value. To do this, we use the Changed function.
Also, use Variables to make things look cleaner and easier.
repeat wait(0.05) until game.IsLoaded() == true
local Egg = workspace:WaitForChild("raimbowfairyegg")
local Val = Egg:WaitForChild("Value")
local Label = script.Parent:WaitForChild("ImageLabel")
Val:GetPropertyChangedSignal("Value"):Connect(function()
if Val.Value == 1 then
Label.Visible = true
else
Label.Visible = false
end
end)
script.Parent.Parent.Parent.Workspace.raimbowfairyegg.Value.Changed:connect(function(Value)
if Value == 1 then
script.Parent.ImageLabel.Visible = true
else
script.Parent.ImageLabel.Visible = false
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Transparent is when visible = false or you set transparency to 1.