Why wont the Gui update with the boolean value? No erros.
Having a problem with my code, trying to script a gui to show up when the value = true. I have two scripts, one is a local script under a screen GUI in starter gui, and the second script is a local script, here is an image of everything:
https://imgur.com/a/ariuqWZ
1 | local MenuOver = script.Parent:FindFirstChild( "MenuOver" ) |
First of all, the value of menu over prints properly like its supposed to.
After this part is some other code for the menu, but that isnt important.
Here is the second part of the script
It also prints properly here as well.
Now here is the second script:
01 | local Tween = game:GetService( "TweenService" ) |
02 | local MenuOver = script.Parent:FindFirstChild( "MenuOver" ) |
03 | local StatusText = script.Parent.Status.TopBar.Status |
04 | local StatusBar = script.Parent.Status.TopBar |
08 | local SlideInSidebar = Tween:Create(StatusBar,TweenInfo.new( 0.5 , Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0 , false , 0 ), { Position = UDim 2. new( 0.2 , 0 , 0 , 0 ) } ) |
11 | if MenuOver.Value = = true then |
15 | StatusText.Text = workspace.Game.GameRun.Status.Value |
Not sure why, but it doesnt do anything inside of the if true then part, why is that?