#Cannot figure out how to change the color of terrain water 😭

5 messages · Page 1 of 1 (latest)

pure yoke
#

What i'm trying to do: when the user loads into a new area, the Water terrain color will change based on the area. unfortunately i cannot use enum.material for some reason, even though i can use this for all other terrain.

Here is the relevant line of code in my script:

local waterMaterial = workspace.Terrain.WaterColor
terrain:SetMaterialColor(waterMaterial, area.LightingSettings.Terrain.Water.Value)

I am getting the following error: Unable to cast Color3 to token

This may be due to me using a Color3Value (see image below), but how else would i be able to do this?
i can provide the full script if that would help

pure yoke
#

update: i realised this is a stupid way to create lava & retired the idea

near phoenix