This is my script:
local MainFrame = script.Parent local HighLow = script.Parent.TextButton script.Parent.TextButton.MouseButton1Click:Connect(function() HighLow.Text = "Low" game.Workspace.Terrain.Decoration = false script.Parent.TextButton.MouseButton1Click:Connect(function() HighLow.Text = "High" game.Workspace.Terrain.Decoration = true end) end)
Apparently Decoration isn't a valid member of Terrain.. Can someone help with this??
Terrain.Decoration
cannot be accessed in a script, it can only be changed in the Roblox studio property window, or using the command bar..
Terrain.Decoration
is a boolean, so it doesn't really serve the purpose that you want, instead use Terrain.MaterialColors
to make color customization..
learn more at roblox API docs website