Hi I am trying to understand Lua coding I am a beginner. What is this suppose to do?
1 | script.Parent.Switcher.MouseButton 1 Click:Connect( function () |
2 | Frame.Visible = not Frame.Visible |
3 | end ) |
And does it do the same as
1 | frame.visible = false |
Please let me know and please explain
not
returns the opposite of a boolean (true
/false
).
1 | print ( not true ) -- false |
2 | print ( not false ) -- true |