So, I'm trying to figure out a code to change the color of my part Color1 but it's not working I'm making a game and I take the testing very seriously because without a working game it will get dislikes. And I've trying to make this script for about a day now.
Heres my script:
script.Parent.ClickDetector.MouseClick:connect(function()
script.Parent.Color1.BrickColor = BrickColor.Red()
end)
I know it's not a lot but it's one of the main parts of my game.
Any help will be appreciated.

5 comments
ServerScript.
Make it a LocalScript then use a RemoteEvent.
Make sure that it's a server script.
K.
I'm confused look at the chat.