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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Event:connect(nil) Works?

Previous Thread :: Next Thread 
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
05 Jan 2013 08:13 PM
local connection = game.Changed:connect()
print(connection.connected) --> true

Why does the connect method allow this? Shouldn't it error?
Report Abuse
lilaroseanna is not online. lilaroseanna
Joined: 19 Apr 2011
Total Posts: 4429
05 Jan 2013 08:20 PM
Yes it is an error I am to tired to try see what is causing it but I will tommorow.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
05 Jan 2013 08:20 PM
Well, consider it to be good.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
05 Jan 2013 08:21 PM
@Lil
You can't script, it's obvious.
Report Abuse
yomamadude6 is not online. yomamadude6
Joined: 21 Nov 2009
Total Posts: 2151
05 Jan 2013 08:22 PM
lol that response
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
05 Jan 2013 08:22 PM
Command bar:

game.Changed:connect()
game.Name = "Let's Make Some Errors!"
--> HH:MM:SS attempt to call a nil value
--> HH:MM:SS Disconnected event because of exception
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
05 Jan 2013 08:23 PM
Nil is a value too!

Equal rights and everything...
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
05 Jan 2013 08:25 PM
Hmm it's not like you could slip a metatable into the connect method and get level 7 right?
Report Abuse
RenderSettings is not online. RenderSettings
Joined: 16 Aug 2010
Total Posts: 2560
05 Jan 2013 08:35 PM
Since it expects a function, and is calling it via the C side and not blindly calling func() so it won't invoke __call, no.
Even if it did, I am pretty sure they made it so the identity of functions is what they were connected with, else changing something's name via the cmdbar would give it level 5.

Example:
script.Changed:connect(function() printidentity() end)

Then from the commandbar:
workspace.Script.Name="Hook"

->Level 2, I would assume.
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
05 Jan 2013 08:57 PM
It will print an error when it runs, but like they said, it doesn't care what you give it prior to then.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
05 Jan 2013 10:18 PM
Calling methods with bad arguments? I can only imagine what hideous code you were using to find this.
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