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
 

two function callers

Previous Thread :: Next Thread 
edenojack is not online. edenojack
Joined: 18 Jul 2008
Total Posts: 989
23 Apr 2013 12:45 PM
I am using the code;
script.Parent.Aim.Changed or script.Parent.clicker.Changed:connect(fire)

I know its not a good line, but I am unsure as to how else I can do this.
I am trying to call on a function that can be called if Aim or clicker Changes, but by making them each individually call fire, I use the same function twice, which I don't want.

Any help?
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
23 Apr 2013 12:52 PM
script.Parent.Aim.Changed:connect(fire)
script.Parent.clicker.Changed:connect(fire)
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
23 Apr 2013 12:54 PM
call each individually and add a debounce to your code.
Report Abuse
KeyUp is not online. KeyUp
Joined: 17 Mar 2013
Total Posts: 457
23 Apr 2013 01:01 PM
[ Content Deleted ]
Report Abuse
edenojack is not online. edenojack
Joined: 18 Jul 2008
Total Posts: 989
23 Apr 2013 01:11 PM
The aim will change to the mouse.Hit.p Vector, and the clicker will go between true and false when the mouse is clicked.

Sometimes aim will be the same value, but the player will still click.
Report Abuse
edenojack is not online. edenojack
Joined: 18 Jul 2008
Total Posts: 989
23 Apr 2013 01:13 PM
* and click will not always change, as the mouse can be held down.
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