I was making Curtains for my camper Done it correctly Copied of the WIKI, Here's what I typed

function onClick(playerwhoclicked) script.parent.brickcolor = BrickColor.Random() end

script.Parent.ClickDetector.MouseClick:connect(onClick)

1 comment

0

You didn't do it correctly... Lua is case sensitive. Meaning "parent" should be "Parent" and "brickcolor" should be "BrickColor".