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 |
|
|
|
| 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
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 05 Jan 2013 08:20 PM |
| Well, consider it to be good. |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 05 Jan 2013 08:21 PM |
@Lil You can't script, it's obvious. |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 05 Jan 2013 08:23 PM |
Nil is a value too!
Equal rights and everything... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|