Couple things wrong with your code.
First and foremost, having a local on top of your script does not make your script local script. Please consider learning the difference between local script and server script. Also, please do not forget to learn about what exactly local is and why we use them.
You are also assigning the color values incorrectly. When specifying the color for any object, you are required to use the color3 table. For sake of readability, we use color3.fromRGB().
This function requires 3 arguments, all of them are integers.
We only have end when we are finished using a new scope we created. In this case, you are using it as a way to end the script. This is incorrect. We do not have end in the bottom of the script if you have not declared any scope whatsoever.
Please learn what exactly scope is to understand this.
Thus, your final script should be similar to, but not entitled to:
wait(27);
script.Parent.TintColor = Color3.fromRGB(255, 0, 0);
Also, consider declaring a variable for the TintColor.
2 comments
Double space? "Color = Color3.fromRGB" It still works but I'm guessing it's a typo or I'm dumb and it's actually necessary.
didn't worked