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)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thanks, im new in this :>