Ok there is a error on "=" i don't know what to put
function onClicked(playerWhoClicked) local=workspace.script.parent workspace.bloq.BrickColor = BrickColor.random() wait(0.5) end script.Parent.ClickDetector.MouseClick:connect(onClicked)
You forgot to add a variable after local
function onClicked(playerWhoClicked) local var =workspace.script.parent -- workspace.script.Parent might not work workspace.bloq.BrickColor = BrickColor.random() wait(0.5) end script.Parent.ClickDetector.MouseClick:connect(onClicked)