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

Gui Script Help?

function Click()
local b = game.Workpsace.Block
	b.BrickColor = BrickColor.Red()
end
script.Parent.MouseButton1Click:connect(Click)

Help please with this script!!!

2 answers

✓ Accepted answer

On line 2, you spelled workspace wrong.

Also, you used the function to change brick color wrong

Your script should look like this,

function Click()
local b = game.Workspace.Block
    b.BrickColor = BrickColor.new("Really red")
end
script.Parent.MouseButton1Click:connect(Click)

Or, possibly,

function Click()
local b = game.Workspace.Block
    b.BrickColor.Red()--Might not work
end
script.Parent.MouseButton1Click:connect(Click)

The first should work, the second is a guess.

Good Luck!

1 comment

0

BrickColor.Red() works. It is stated on the wiki and works in the commandline.

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