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 » Scripters
Home Search
 

Re: Double click?

Previous Thread :: Next Thread 
DewTie is not online. DewTie
Joined: 08 Nov 2014
Total Posts: 683
18 Jul 2017 12:31 AM
How would i make a script that tells the difference when a button is clicked or double clicked
Not sure how to do this but my only guess is debounce...?
Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
18 Jul 2017 12:34 AM

local click = tick()

mouse.Button1Down:connect(function()

        if tick() - click < 0.8 then

                print("double Click!")

        end

        click = tick()

end)


Found this on the forums
Report Abuse
DewTie is not online. DewTie
Joined: 08 Nov 2014
Total Posts: 683
18 Jul 2017 12:37 AM
thanks
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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