Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Random red error line on code I find to be correct??(solved)

Asked by 2 years ago
Edited 2 years ago

I am typing a code that makes a script inside a model make a character inside that model's head black. But for some reason, it has a line of red. With a piece of the red saying "Statement spans multiple lines; use indentation to silence" And the other piece saying "expected identifier when parsing expression, got '='" Please help me. The line of code will be provided here:

script.Parent.AllenBatman777.Head.Color = Color3.new(0,0,0)

1 answer

Log in to vote
0
Answered by 2 years ago

I solved it myself. I simply turned te code into a function instead of a full section of code.

0
Nevermind, apparently I just had to add another "=" and add a space?? AllenBatman666 30 — 2y
Ad

Answer this question