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

Why a "=" in a repeat is a syntax error?

I've got Syntax error: Expected identifier when parsing expression, got "=" in a code and I think that the code is good but it doesn't work, how can I solve the error?

This is the error of the code, the error is in the third "=", in line 4

repeat wait()
	Camera.CameraType = Enum.CameraType.Scriptable
	Blur.size = 150
until Camera.CameraType = Enum.CameraType.Scriptable

2 comments

0

Add it twice in line 4, "==", not once.

0

mostly u do 2 times = if u wanna say equal no to change @HEyItzDanniee

2 answers

✓ Accepted answer

Basically, you can't just do "=" cause it sends a command.

if you wanna check then use "==" this is checking if its equal to.


Here is your code working

repeat wait()
    Camera.CameraType = Enum.CameraType.Scriptable
    Blur.size = 150
until Camera.CameraType == Enum.CameraType.Scriptable

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