generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Hellpppp

Previous Thread :: Next Thread 
SkaterdavidRO is not online. SkaterdavidRO
Joined: 08 Jun 2011
Total Posts: 1034
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 is not online. 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 is not online. 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
SkaterdavidRO is not online. SkaterdavidRO
Joined: 08 Jun 2011
Total Posts: 1034
14 Apr 2014 11:20 AM
@Goulstem
Thanks!!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image