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: Script Help required

Previous Thread :: Next Thread 
EcIiptic is not online. 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 is not online. 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
rosie92680 is not online. rosie92680
Joined: 17 Oct 2011
Total Posts: 1511
30 Dec 2013 08:48 PM
Bump (I'm bumping cause I want to know too :P)
Report Abuse
EcIiptic is not online. 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 is not online. 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 is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
30 Dec 2013 09:07 PM
[ Content Deleted ]
Report Abuse
EcIiptic is not online. EcIiptic
Joined: 12 Aug 2009
Total Posts: 13737
30 Dec 2013 09:09 PM
^ tl;dr version pls
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
30 Dec 2013 09:10 PM
[ Content Deleted ]
Report Abuse
EcIiptic is not online. 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
rosie92680 is not online. rosie92680
Joined: 17 Oct 2011
Total Posts: 1511
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 is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
30 Dec 2013 09:25 PM
[ Content Deleted ]
Report Abuse
VesperoBLOX is not online. VesperoBLOX
Joined: 10 Nov 2013
Total Posts: 88
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 is not online. 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
rosie92680 is not online. rosie92680
Joined: 17 Oct 2011
Total Posts: 1511
30 Dec 2013 09:33 PM
I'm going to burn you with a coffee soon >.<
Report Abuse
ZerefSan is not online. 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 is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
30 Dec 2013 09:35 PM
[ Content Deleted ]
Report Abuse
wazap is not online. 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 is not online. 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
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