EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
|
| 30 Dec 2013 08:44 PM |
Ok. I don't know how to do this and I need an example.
How do I make it to where for as long as I hold the click button, something happens?
like
function onButton1Down(mouse)
repeat print("1") wait(0.1) until mouse.Button1Up
I know this doesn't work, but I need an example of a working script. Could you make it repeat a print ever 0.1 seconds so I don't have this lengthy explanation to decipher? |
|
|
| Report Abuse |
|
|
N8X
|
  |
| Joined: 15 Nov 2013 |
| Total Posts: 1665 |
|
|
| 30 Dec 2013 08:47 PM |
mouse = game.Players.LocalPlayer:GetMouse() function onButton1Down() mouse.Button1Up:wait()--Waits for it end mouse.Button1Down:connect(onButton1Down) |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 08:48 PM |
| Bump (I'm bumping cause I want to know too :P) |
|
|
| Report Abuse |
|
|
EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
|
| 30 Dec 2013 09:03 PM |
n8x
Doesn't even work.
Please post whole script where it prints every 1 second until button1up. I think I'm doing something wrong, or your wrong. |
|
|
| Report Abuse |
|
|
N8X
|
  |
| Joined: 15 Nov 2013 |
| Total Posts: 1665 |
|
|
| 30 Dec 2013 09:04 PM |
http://wiki.roblox.com/index.php/Mouse http://wiki.roblox.com/index.php/Connect#Methods |
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
| |
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
EcIiptic
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 13737 |
|
|
| 30 Dec 2013 09:12 PM |
tl;dr
@N8X
wtf... instead of just giving people links to extensive, complex guides you could just write the correct way of doing the dang script. It's only like 6 lines long.
You have been no help AT ALL. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 09:23 PM |
| @madified, not it ain't at all like that >_< I am interested in knowing how to do it, hoping that if I bump it there will be a higher chance of someone commenting on it, it's just common sense madified, c'mon. |
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
|
| 30 Dec 2013 09:29 PM |
@Ecliptic This forum is for learning, not spoon-feeding. We will occasionally give you the script, but you must know how to use it. |
|
|
| Report Abuse |
|
|
ZerefSan
|
  |
| Joined: 14 Jun 2011 |
| Total Posts: 1068 |
|
|
| 30 Dec 2013 09:33 PM |
@Mad Personally, I like my coffee black. This is WAY off topic, but... :3 |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 09:33 PM |
| I'm going to burn you with a coffee soon >.< |
|
|
| Report Abuse |
|
|
ZerefSan
|
  |
| Joined: 14 Jun 2011 |
| Total Posts: 1068 |
|
|
| 30 Dec 2013 09:34 PM |
| No! I will burn YOU! Mine is hotter because my shmexy radiates heat to heat the coffee. >:) |
|
|
| Report Abuse |
|
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 30 Dec 2013 09:52 PM |
buttonisfrikindownandOPisanODer = false mouse.Button1Down:connect(function() buttonisfrikindownandOPisanODer = true repeat print(1) wait(.1) until not buttonisfrikindownandOPisanODer end) mouse.Button1Up:connect(function() buttonisfrikindownandOPisanODer=false end) |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 30 Dec 2013 09:53 PM |
2 things 1. Before this, put mouse = game.Players.LocalPlayer:GetMouse()
2. put in LocalScript and put LocalScript in StarterGui. |
|
|
| Report Abuse |
|
|