How do i check if a bool value is changed to false or the value is false to begin with without copy and pasting the code (too much code to copy and paste and wouldn't be efficient) e.g:
BoolValue.Changed:connect(function(NewValue) if NewValue == false then --Lots of code end end) if BoolValue == false then --Lots of code (exact same as above) end
How would i join these together for efficiency therefore considerably lowering the script line count?
If you want to check if it has changed then try this checks at a wait time of however you want it checks if the bool is false
local Bool = false While wait() do if Bool == false then print(“Boolean is false..”) end end