Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What does this do exactly Frame.Visible = not Frame.Visible?

Hi I am trying to understand Lua coding I am a beginner. What is this suppose to do?

script.Parent.Switcher.MouseButton1Click:Connect(function()
	Frame.Visible = not Frame.Visible
end)

And does it do the same as

frame.visible = false

Please let me know and please explain

1 comment

0

Sorry for weird tittle spent 5 minutes trying to post due to tittle spam

1 answer

✓ Accepted answer

not returns the opposite of a boolean (true/false).

print(not true) -- false
print(not false) -- true

4 comments

0

so frame.visible = not frame.visible witch is equvlant to frame.visible = true right?? or is it frame.visible = false??

0

both

0

ok

0

thx

This discussion is preserved as it was. New answers, comments, and votes are closed.