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: I <3 bindable functions/events

Previous Thread :: Next Thread 
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 08:46 PM
Oh my god they are so usful I never used them to their full potential before Its outstanding.
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
03 Nov 2015 08:47 PM
let's hear what you use them for
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 08:52 PM
Well I'm making a tool that requires certain weld positions of the arms and legs, so what I do is fire a bindable event in the player to tell another localscript to do the welding, This makes the tool script a lot smaller and better to read, aswell as making it easier to create weld positions because you only deal with welds in that script.

3 tool scripts
1 weld script
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
03 Nov 2015 08:54 PM
why dont u just use module scripts
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 08:57 PM
Because all module scripts can do is run functions, with a separate script I can do a ton of things that I need for all the tool scripts.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
03 Nov 2015 08:57 PM
"why dont u just use module scripts"
Why don't we just replace wrenches with hammers, as they do the same thing, right?
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
03 Nov 2015 09:00 PM
you can do a lot with module scripts actually
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 09:01 PM
Can you have a rennderstep event connect to a function?
No
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
03 Nov 2015 09:02 PM
"you can do a lot with module scripts actually"
You can do a lot with a hammer to. You might even be able to use one as a wrench, but in case you didn't get the hint, NOT MADE FOR THAT.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
03 Nov 2015 09:03 PM
local Module = {}

Module.Lol = function()
print'lol'
end

game:GetService("RunService").RenderStepped:connect(Module.Lol)

return Module
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
03 Nov 2015 09:04 PM
JarodOfOrbiter you sound like a really worked up nerd lmao

NOT MADE FOR THAT !!!!!
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 09:05 PM
^While you did disregaurd what I said, I didn't think it would do that, it
1. Didnt run until required
2. (if I'm right), it would connect that function each time it is required
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
03 Nov 2015 09:06 PM
I am.
I dislike it when people compare ModuleScripts to things with totally different purposes.


You know though, you don't even need a ModuleScript. Just used _G or shared.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
03 Nov 2015 09:07 PM
why would you require it more than once lol

and why would you wait before requiring it...?
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 09:07 PM
Personally the only good use for a module script is an ugly library.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
03 Nov 2015 09:07 PM
"2. (if I'm right), it would connect that function each time it is required"
No, I'm pretty sure this one is false.
The table has already been returned the first time it was required, and it returns the same thing each time, and only runs once.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
03 Nov 2015 09:08 PM
"why would you require it more than once lol"

Perhaps you missed the time he said "BindableFunction" and "BindableEvent" (Implying sending data between two or more scripts)
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
03 Nov 2015 09:08 PM
JarodOfOrbiter no _G. and module scripts are completely different you have no idea what you're talking about

and _G. can be rewritten, and not accessed from a local script

aside from the fact that _G. is outdated and ugly
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 09:08 PM
^Thanks
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
03 Nov 2015 09:08 PM
@CLIMAX To be truthful, your insults are as bland as bland.
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 09:09 PM
>outdated
no
>ugly
yes
>as ugly as module script
almost, mainly depending on use
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
03 Nov 2015 09:11 PM
"JarodOfOrbiter no _G. and module scripts are completely different you have no idea what you're talking about"
Well since you are returning a table anyways, they are essentially the same after initialization.

"and _G. can be rewritten, and not accessed from a local script"
Tables returned by ModuleScripts can be re-written. _G can be accessed from LocalScripts the same way ModuleScripts can (Id est, only on the same machine, just like ModuleScripts)

"aside from the fact that _G. is outdated and ugly"
Of course, using a ModuleScript for something it wasn't meant for is certainly not ugly in any way.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
03 Nov 2015 09:13 PM
@bosswalrus probably because i don't care as much as you

i can say whatever i want, and it doesn't really get to me if someone makes fun of me for all the idiotic things i say on the internet, especially on roblox of all places

if it were in real life with my real friends it would make a difference
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
03 Nov 2015 09:14 PM
Oh damn the butthurt is getting edgy
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Nov 2015 09:16 PM
'and _G. can be rewritten, and not accessed from a local script'
idiot

'aside from the fact that _G. is outdated and ugly'
idiot [2]

CLIMAX you're stupid
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