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: How do I get you to click more than once..

Previous Thread :: Next Thread 
Zoanuv is not online. Zoanuv
Joined: 09 Apr 2016
Total Posts: 118
27 Dec 2016 08:43 PM
I need the player to click the item more than once, (as he does it the block gets smaller) and then get the added hunger.value once it reaches a small enough block or mesh


function onClick()
local Amount = script.Parent.Amount
local Hunger = game.Players.LocalPlayer.PlayerGui.HungerGUI.tray.Hunger
Hunger.Value = Hunger.Value - Amount.Value
script.Parent:remove()
end

script.Parent.ClickDetector.MouseClick:connect(onClick)
Report Abuse
Zoanuv is not online. Zoanuv
Joined: 09 Apr 2016
Total Posts: 118
27 Dec 2016 08:47 PM
1
Report Abuse
Zoanuv is not online. Zoanuv
Joined: 09 Apr 2016
Total Posts: 118
27 Dec 2016 08:51 PM
2
Report Abuse
Zoanuv is not online. Zoanuv
Joined: 09 Apr 2016
Total Posts: 118
27 Dec 2016 08:57 PM
3
Report Abuse
OAuth2 is not online. OAuth2
Joined: 27 Nov 2016
Total Posts: 751
27 Dec 2016 09:04 PM
Woah there, fella.

http://wiki.roblox.com/index.php?title=API:Class/ClickDetector/MouseClick
http://wiki.roblox.com/index.php?title=API:Class/Script
http://wiki.roblox.com/index.php?title=API:Class/LocalScript


Report Abuse
Zoanuv is not online. Zoanuv
Joined: 09 Apr 2016
Total Posts: 118
27 Dec 2016 09:10 PM
@oauth


just give me the code
Report Abuse
Zoanuv is not online. Zoanuv
Joined: 09 Apr 2016
Total Posts: 118
27 Dec 2016 09:18 PM
6969
Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
27 Dec 2016 09:19 PM
:remove is deprecated, use :Destroy()


Report Abuse
Zoanuv is not online. Zoanuv
Joined: 09 Apr 2016
Total Posts: 118
27 Dec 2016 09:23 PM
give me the code i dont care about :remove
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