|
| 13 Apr 2014 10:22 PM |
| What script would you use to count how many times a person has clicked a specific object. Like Cookie Clicker. |
|
|
| Report Abuse |
|
|
2unknown2
|
  |
| Joined: 30 Oct 2011 |
| Total Posts: 9351 |
|
|
| 13 Apr 2014 10:24 PM |
mc = Instance.new("ClickDetector",game.workspace.Part)
figure out the mousebutton function |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 13 Apr 2014 10:26 PM |
--Put a brick, Put a clickdetector in the brick, put this script in the brick.
script.Parent.ClickDetector.MouseClick:connect(function() clicks = game.Players.LocalPlayer:FindFirstChild("ClickVal",true) if not clicks then s = Instance.new("IntValue",game.Players.LocalPlayer) s.Name = "ClickVal" s.Value = 1 else clicks.Value = clicks.Value + 1 end end)
|
|
|
| Report Abuse |
|
|
| |
|