comiconor
|
  |
| Joined: 26 May 2009 |
| Total Posts: 16893 |
|
|
| 04 Feb 2012 04:09 PM |
| Do you think it's possible? If so, how? |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 04:10 PM |
What? You mean like this:
t = {lol = function() print('hi') end} t.lol()
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
comiconor
|
  |
| Joined: 26 May 2009 |
| Total Posts: 16893 |
|
|
| 04 Feb 2012 04:15 PM |
So...
function hi(text) print(text) end
function bye(moo) Instance.new("Explosion", game.Workspace) print(moo) end
table = {lol = hi(), rofl = bye()}
t.lol("HELLO") t.bye("BOOM") |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 04:16 PM |
function hi(text) print(text) end function bye(moo) Instance.new("Explosion", game.Workspace) print(moo) end table = {lol = hi(), rofl = bye()} table.lol("HELLO") table.bye("BOOM")
It's not easy being cheesy. I love Marilyn Mason,Sucicide Silence, and IWABO. Baseplate Maker Plugin here: http://www.roblox.com/Baseplate-maker-plugin-item?id=71012144 |
|
|
| Report Abuse |
|
|
Flurite
|
  |
| Joined: 03 Apr 2011 |
| Total Posts: 5386 |
|
|
| 04 Feb 2012 04:17 PM |
The last line is wrong.
~Flurite |
|
|
| Report Abuse |
|
|
comiconor
|
  |
| Joined: 26 May 2009 |
| Total Posts: 16893 |
|
|
| 04 Feb 2012 04:19 PM |
Lol, just noticed :-P
lol.rofl, not lol.bye |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 04:22 PM |
You'd receive an error.
function hi(text) print(text) end
function bye(moo) Instance.new("Explosion", game.Workspace) print(moo) end
table = {lol = hi, rofl = bye} -- DON'T CALL THE FUNCTIONS!!!! :P
table.lol("HELLO") table.bye("BOOM") |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 04 Feb 2012 04:22 PM |
"Lol, just noticed :-P
lol.rofl, not lol.bye"
Yes, that, too. I didn't manage to catch that. |
|
|
| Report Abuse |
|
|