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
 

Are all connection lines like this?

Previous Thread :: Next Thread 
PuNiShEr5665 is not online. PuNiShEr5665
Joined: 12 Aug 2009
Total Posts: 33713
26 Mar 2012 05:32 AM
[Object].[Event]:connect([Function])

Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
26 Mar 2012 05:35 AM
yes, exept if there is something idk .
Report Abuse
iCookieNL is not online. iCookieNL
Joined: 24 May 2009
Total Posts: 1103
26 Mar 2012 05:36 AM
its

Object.Event:connect(Function)

or

Object.Event:connect(Function in Here.)
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
26 Mar 2012 05:39 AM
[Object].[Event]:connect([Function])

Object.Event:connect(Function)

Object.Event:connect(Function in Here.)

are all basicly the same

Object . Event : connect ( function )
Report Abuse
iCookieNL is not online. iCookieNL
Joined: 24 May 2009
Total Posts: 1103
26 Mar 2012 05:42 AM
there is a difference between

Function
and
Function in here



Function =



function arta()
print("haha")
end

Object.Touched:connect(arta)



Function In Here =


Object.Touched:connect(function() print("haha") end)
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
26 Mar 2012 05:44 AM
nope its still the same

:connect() and function inside there :P
(I knew what you meant when I posted that. but its still the same general form :P)
Report Abuse
iCookieNL is not online. iCookieNL
Joined: 24 May 2009
Total Posts: 1103
26 Mar 2012 05:45 AM
The difference is less lines.
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
26 Mar 2012 05:47 AM
and he is asking about connection lines not the difference between the two ;/
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
26 Mar 2012 06:18 AM
Anonymous function/connection:

    [Instance][Event]:connect(function(par)
        --
    end)

function/connection:

    function onEvent(par)
        --
    end

    [Instance][Event]:connect(onEvent)

Only time that I wouldn't use an anonymous function (/connection) is when I have a function that I might call manually and that might call itself when an event fires.
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