Hey, It's great that you're trying, and of course, its always a bummer if it doesn't work, right?
I'll help you get this working.
The following things are wrong with your script:
- You can not set r,g,b individualy
- You use 'repeat' at the bottom. This is actualy used as
repeat -code- until -statement-
How to fix this:
On your first line, you should use while true do, this will make the code that comes after this, run in a loop until you call a break.
After that, you should change the colorcorrection using: game.Lighting.ColorCorrection.TintColor = Color3.new(0.25,0,0) -R,G,B on a scale of 0 to 1
Then you call a wait, wich you did perfectly!
wait(0.1)
After that, you want to change the color again.
game.Lighting.ColorCorrection.TintColor = Color3.new(1,0,1) -R,G,B on a scale of 0 to 1
Then you close the while true do using the end keyword.
Your final code would be:
while true do
wait(0.1)
game.Lighting.ColorCorrection.TintColor = Color3.new(0.25,0,0)
wait(0.1)
game.Lighting.ColorCorrection.TintColor = Color3.new(1,0,1)
end
This will do the following:
Repeat constantly,
Wait 0.1 second
Change the color to 1/4 red, 0 green, 0 blue
Wait 0.1 second
Change the color to 1 red 0 green 1 blue (Purple)
Hope this helps you!
Happy scripting ;D
1 comment
You also refer to it as both "TintColor" and "Tintcolor"