of     1   

Rojadi
#139932293Friday, July 11, 2014 12:44 AM GMT

I am noob at this thing of scripting and i want to make a brick print the word ''hi'' when you click it. What would the code look like? :/
rockshe1000
#139933313Friday, July 11, 2014 12:54 AM GMT

function onClicked(playerWhoClicked) print("Hi!") end script.Parent.ClickDetector.MouseClick:connect(onClicked) this should work?
luigi01302
#139933571Friday, July 11, 2014 12:56 AM GMT

First insert a ClickDetector into the brick and then a script. function onClicked() print "HAI" -- Change this to whatever you want. end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Rojadi
#140001862Friday, July 11, 2014 5:53 PM GMT

Thanks, it works.

    of     1