function Click()
local b = game.Workpsace.Block
b.BrickColor = BrickColor.Red()
end
script.Parent.MouseButton1Click:connect(Click)
Help please with this script!!!
function Click()
local b = game.Workpsace.Block
b.BrickColor = BrickColor.Red()
end
script.Parent.MouseButton1Click:connect(Click)
Help please with this script!!!
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!
You are Using BrickColor.red() You have to get a new brickcolor so you use BrickColor.new("Red")
This is false. BrickColor.Red() also works. See: http://wiki.roblox.com/index.php?title=BrickColor.
Oh I never knew that. My bad, hehe.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
BrickColor.Red() works. It is stated on the wiki and works in the commandline.