Hello, Like I said in my previous questions, I am building something. I just want to know how to make an on-Clicked Part, If you do answer. Thank you, If you sneezed "Bless You".
Ok well it would be like
function onClicked(playerWhoClicked) script.Parent.BrickColor = BrickColor.Random() end script.Parent.ClickDetector.MouseClick:connect(onClicked)
To make an onClicked part, you would need two things, one, click detector is inserted into the part that you want to click.
Second, if you want to click sonething, it needs a function.
For example,
function onClicked() ("Now type anything you want the function to execute) game.Workspace.Part.Transparency = 0.6 end script.Parent.ClickDetector.MouseClick:connect(onClicked) -This would be calling the function, so it can activate. -Whatever you put between the lines of the function, is what the script will execute.