menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Functions in tables
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Functions in tables
Jlobblet
Join Date: 2010-09-05
Post Count: 587
#64362238
Thursday, March 15, 2012 10:54 AM GMT
Is it possible to put a function in a table? So, the math functions may be like this: math = { function pi() return 3.1415926535898 end} and so on.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
[rfa#hidefromsearch]
Join Date: 0001-01-01
Post Count: 0
#64362582
Thursday, March 15, 2012 11:31 AM GMT
[rfa#hidefromsearch]
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
blackhalodude
Join Date: 2010-06-16
Post Count: 412
#64363084
Thursday, March 15, 2012 12:13 PM GMT
lol
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
BunnyBoy26
Join Date: 2010-06-17
Post Count: 5674
#64363382
Thursday, March 15, 2012 12:35 PM GMT
yeah it is.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
blackhalodude
Join Date: 2010-06-16
Post Count: 412
#64363417
Thursday, March 15, 2012 12:39 PM GMT
Print ("Testing Forum Enchancer")
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
FinaIize
Join Date: 2012-02-20
Post Count: 43
#64364576
Thursday, March 15, 2012 2:34 PM GMT
Its like this: local math={ ["pi"]=function() --Stuff here end, ["floor"]=function() --Stuff here end }
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right