The .Visible Property isn't updating, Is this a bug?
Hello, In my script I have it set to when ever you press a button it makes certain things visible and others invisible, the problem is it changed the property in the property tab but not on screen. I can got to the objects visible property and it will be off and it will still be on screen. When I turn it off before I start the game it disappears but not when I use a script. Keep in mind I am new, so I'm sorry if this is a dumb question. Another thing to note is that it was working until I changed the order of the uis in the starter UI and before I made some coding edits.
03 | local everything = game.StarterGui:WaitForChild( "ScreenGui" ):WaitForChild( "Frame" ) |
04 | local ShopFrame = game:GetService( "StarterGui" ).ScreenGui.ShopFrame |
05 | local shopui = game:GetService( "StarterGui" ).ScreenGui.Frame.ShopGUI |
06 | local buttonframe = game:GetService( "StarterGui" ).ScreenGui.Frame.ShopButton.Frame |
07 | local Start = script.Parent.Parent.Start |
10 | button.MouseButton 1 Down:Connect( function () |
12 | everything.Visible = false |
13 | if everything.Visible = = false then |
16 | shopui:TweenPosition(UDim 2. new( 0.351 , 0 , 0.15 , 0 ), "Out" , "Quad" , 0.2 , true ) |
17 | ShopFrame.Visible = true |
Thanks!!