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

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

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

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

1 comment

0

Nevermind, apparently I just had to add another "=" and add a space??

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