Can I change the Grass Colour?

Hi!
Can I change the Colour of Grass (located in Terrain) using a LocalScript?

My Code so Far…

local button = script.Parent
button.MouseButton1Click:Connect(function()
	game.Workspace.Terrain.Material.Grass = "[232,156,74]"
end)

And yes, this did not work. It came up with this Error…

19:20:58.176 - Grass cannot be assigned to

Can someone explain what I’m doing wrong, or provide the working code? Or is it just not possible?

Cheers, AridOats.

In order to change a terrain color you have to use Terrain:SetMaterialColor()

So your script has to be:

local button = script.Parent
button.MouseButton1Click:Connect(function()
	game.Workspace.Terrain:SetMaterialColor(Enum.Material.Grass, Color3.fromRGB(232,156,74))
end)
2 Likes

I actually made the same script nice.