Why Is BoolValue not working?

  1. What do you want to achieve?
    I want the visible button to be on false.
  2. What is the issue? Include screenshots / videos if possible!
    I don’t know why when I want to make the visible button “false” with the script and when I play it doesn’t work.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Nothing.
while true do
	script.Parent.ImageLabel1.Visible = false
	script.Parent.ImageLabel.Visible = true
	wait(1)
	script.Parent.ImageLabel1.Visible = true
	script.Parent.ImageLabel.Visible = false
	wait(2)
end
1 Like

Are you able to send a screen shot of your Explorer Hierarchy?

Sure,
Screenshot 2023-10-24 200440

Can you show me where the button you were talking about is?

I meant, The button is the visible on the image

Screenshot 2023-10-24 200736

Oh ok, well I tested your script and it works fine. The reason why you see the ImageLabel1.Visible Property as set to true is because you are looking at StarterGui, but when you press play the content’s of StarterGui get cloned into Player.PlayerGui as describe by the image below.

So your script is working fine, you’re just looking in the wrong place.

oh thanks! That was very helpful, I was in Run mode so I couldn’t tell.

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