Can Terrain.WaterColor even lerp at all? Anyway -- I'm trying to change the color of the water smoothly when a player touches / triggers a brick. Everything seems to fire okay, up until it comes to actually changing the water's color (i've included a debounce so your output doesn't get smashed):
local watercolor = game.Workspace.Terrain.WaterColor
local debounce = true
function onTouched(hit)
if debounce then
debounce = false
print("player touching")
for i=0,1,0.001 do
watercolor = watercolor:Lerp(Color3.fromRGB(93, 87, 1), i)
wait(2)
debounce = true
end
end
end
script.Parent.Touched:connect(onTouched)
Any reason why this is? This is my first time using Lerp -- am I doing this incorrectly? Any input would be greatly appreciated. Thanks for reading!
