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: How do I use 'BindableFunctions' and 'BindableEvents'?

Previous Thread :: Next Thread 
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
02 Oct 2012 11:40 AM
If anyone can tell me how to use these things, I can proceed with my game - I don't get how really I use them.
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
02 Oct 2012 11:55 AM
Why do you want to use them?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
02 Oct 2012 11:58 AM
Well, I'm making a game - and my main 'script' has functions that aren't actually defined, like 'chat' - I want to define them, but not actually define them in the script. If you've seen chat3(tm) then it's a similar kind of thing to that, but also very different.
Report Abuse
technoguyx is not online. technoguyx
Joined: 05 Dec 2008
Total Posts: 8286
02 Oct 2012 12:25 PM
A BindableEvent is an Event with a "Fire" Method, which fires a "Event" Event and passes any arguments passed in the "Fire" call to "Event". This makes easy communication between scripts:

--script 1

workspace.BindableEvent:Fire("Hello World!")

--script 2

workspace.BindableEvent.Event:connect(

function(msg)

print(msg)

end

end

)

--output = Hello World!

------

I don't know much about BindableFunctions, but there's always the wiki: http://wiki.roblox.com/index.php/BindableFunction
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