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

I need help on this Terrain Decoration Gui Script?

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

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

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