Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can someone help me with the Terrain color script?

I need help with the terrain color script. : (

I tryed many time scripting the terrain of my test world but everytime I tryed the Scripts, that I found on Youtube and in the internet they didnt work.

Here is the Script that I found: local terrain = game.Workspace.Terrain

game:Workspace.Terrain:SetMaterialColor(Enum.MaterialGrass,Color3.fromRGB(0, 85, 0)

Is there anything wrong in this Code?

After watching many videos and seeking for the script in the internet, I am here for some help please.

I hope that you can help me . Thank you for your time. : )

2 comments

0

Well first of all I see that you did game:Workspace, I would assume that it should be game.Workspace because you are trying to set the path to Terrain. I would say "game.Workspace.Terrain:SetMaterialColor(Enum.Material.Grass, Color3.fromRGB(0, 85, 0))"

0

Thank you so much for your time and help .

1 answer

✓ Accepted answer

You didn't close your brackets and did an invalid enum, try this to make the code look neater and avoid mistakes like this in the future:

local Color = Color3.fromRGB(0, 85, 0)
local Mate = Enum.Material.Grass

game:Workspace.Terrain:SetMaterialColor(Mate, Color)

Terrain:SetMaterialColor

If this works, mark it as your answer to avoid wasting time of other developers / scripters.

1 comment

0

Thank you very much for you time and your help.

This discussion is preserved as it was. New answers, comments, and votes are closed.