Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I need help on this Terrain Decoration Gui Script?

Asked by 4 years ago

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??

1 answer

Log in to vote
0
Answered by 4 years ago

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

Ad

Answer this question