Why does the '=' have a syntax error saying "Expected then when parsing if statment. got '='? code:
if workspace.Timer.Value => 0 then function leftClick() workspace.Classic.Value = workspace.Classic.Value + 1 script.Disabled = true end script.Parent.MouseButton1Click:Connect(leftClick)
im fairly new to coding
The if statement at the start of your code has no actual
end. The only end you're using is ending the function inside(?) of the statement, not the statement itself. You'll need to insert an end either before the function and after the statement is defined (anywhere after the if but before the start of the function) or after the function to alleviate the issue.
Also, all conditional syntax use either
x= for number comparison, where x is either =, ~, >, or <.
=> is incorrect syntax.
in line one the symbol is =>, thats wrong i think, im pretty sure its >=
Edit: Yup i tested and got the same error, its the greater sign first then equal sign last