|
| 22 Aug 2015 01:20 PM |
| How could I do this, using unpack(math) or looping through math doesnt work |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 22 Aug 2015 01:21 PM |
First why? Second http://wiki.roblox.com/index.php?title=Function_dump/Mathematical_functions |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 01:28 PM |
| Not what math had, I meant the functions. I want to insert all of the functions inside a new table so I can add on to it |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 22 Aug 2015 01:37 PM |
| You have to add them by hand. The link above lists all the math functions so you just basically have to copy paste. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 01:37 PM |
| ive seen it before you pepperoni |
|
|
| Report Abuse |
|
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 22 Aug 2015 01:38 PM |
@Sensei
Alternatively you could create a wrapper for the math library |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 02:26 PM |
local NewMath = {} setmetatable(NewMath,{__index=math})
then add your functions |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2015 02:35 PM |
Going off what he said
local Math = { add = function(...) local Tuple = {...} local Num = 0 for i = 1,#Tuple do Num = Num + Tuple[i] end return Num end } setmetatable( Math, {__index = math} ) return Math |
|
|
| Report Abuse |
|
|