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

I have an error in my script. It's probably easy to fix, but I'm new to scripting. Can anyone help?

The line of the script with an error in is:

if speaker.Name = "ovyxn" then

The '=' is underlined red and says: Expected 'then', got '=' Can anyone please help me with this?

1 comment

0

= means you change it to. == means its equal to.

1 answer

✓ Accepted answer

The assignment operator is =

The 'equal to' operator is ==

You can't assign something in the conditional portion

if speaker.Name == "ovyxn" then

####Don't forget to accept if this helps

1 comment

0

Thank you so much! This really helps.

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