of     1   

Intevoid
#182953023Wednesday, February 03, 2016 11:15 PM GMT

Okay, so I'm trying to make a brick that when clicked, it adds 1 to a value, and then the brick deletes itself. function onClicked(playerWhoClicked) sticks.Value + 1 wait(0.25) script.Parent.Parent:Destroy() end This is what I have, and I'm fairly new to ClickDetector scripting, so any tips?
Intevoid
#182953066Wednesday, February 03, 2016 11:15 PM GMT

I feel like I'm making a really stupid error here that I brushed over.
Roblok1
#182953139Wednesday, February 03, 2016 11:17 PM GMT

you forgot to add the connection line: ClickDetector.MouseClick:connect(OnClicked) -- or whatever the function name is
Intevoid
#182953176Wednesday, February 03, 2016 11:17 PM GMT

Thanks, I tend to be quick and sloppy when scripting, lol.
Intevoid
#182953256Wednesday, February 03, 2016 11:19 PM GMT

It's also saying that the "+" is invalid, and it expects a "=". Ignore it, or change it?
ez_street
#182953319Wednesday, February 03, 2016 11:20 PM GMT

It wouldn't work anyway, because it would delete the script's parent's parent. Which the script is probably in.
Roblok1
#182953327Wednesday, February 03, 2016 11:20 PM GMT

because you need to do this: sticks.Value = sticks.Value + 1
FrostOver
#182953372Wednesday, February 03, 2016 11:21 PM GMT

sticks.Value = sticks.Value + 1
Intevoid
#182953378Wednesday, February 03, 2016 11:21 PM GMT

Thanks, it's working.
Roblok1
#182953445Wednesday, February 03, 2016 11:22 PM GMT

lol, ninja post
Intevoid
#182998113Thursday, February 04, 2016 9:00 PM GMT

@iMung I see what you mean. What solution would you recommend?

    of     1