Okay, so I'm new to scripting (I've been playing around with it though.) I've been watching the **old** roblox tutorials on how to script, there is this one I watched for making a street light that turns on in the day, and one for night time, so I thought: "Maybe I can make the water color change blue during the day, and red, during the night!
So I've tried many things such as:
01 | game.WorkSpace.Terrain.Properties.WaterColor = ( 0 , 0 , 0 ) |
02 |
03 | --or |
04 |
05 | Game.WorkSpace.Terrain.WaterColor = ( 0 , 0 , 0 ) |
06 |
07 | --And even |
08 |
09 | Game.WorkSpace.Terrain = WaterColor( 0 , 0 , 0 ) |
10 |
11 | --Last one |
12 |
13 | Game.WorkSpace.Terrain.Watercolor = Color 3 ( 0 , 0 , 0 ) |
I forgot the digits I've used, I even used the color codes (#ff000 for example) I just want to change the color in the script, not physically in the game, so it can change colors during the time. Please help!!!
You've made many mistakes here;
game
should always be lower case, W in Workspace
should be capitalized only, and W & C in WaterColor
should be capitalized. To set the color, use Color3.fromRGB(1,2,3)
1 | game.Workspace.Terrain.WaterColor = Color 3. fromRGB( 0 , 0 , 255 ) |
It's better to use "Color3.fromRGB"
than "Color3.new"
, as you get RGB colors.
Here's an example of what the numbers represent: "Color3.fromRGB(RED,GREEN,BLUE)"
So, setting the last value to "255"
and leaving the others on 0
makes it blue.
Now obviously, this blue won't look like a natural water color so you'll have to keep playing with the values until you get the right tone.