If statement not working

Ive been trying to get a if statement like this to work:

local bool = false
if bool = false then
(code)
end

This results in an error saying “Expected then when parsing if statement, got “=”” I have absolutely no idea how this is even wrong at all. Is there any way to make something like the code above that actually works? Thanks!

Do this:

if bool == false then
    (code)
end

:sweat_smile:, Relpace = with ==

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.