|
| 20 Jun 2014 01:11 PM |
Methods = { BasePart = { } }
function CreateMethod(var, obj, method) Methods[obj][method] = function(var) return var:Clone() end end
CreateMethod(Workspace.BasePlate, "BasePart", "Copy")
Methods.BasePart:Copy().Parent = Workspace
It says that on line 10;
attempt to call method 'Clone' (a nil value) |
|
|
| Report Abuse |
|
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 20 Jun 2014 01:12 PM |
"CreateMethod(Workspace.BasePlate, "BasePart", "Copy")"
You're having that return something, are you not? Make it equal a local variable! |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 01:12 PM |
| Well, "var" from "CreateMethod" is being overwritten by "var" from "Methods[obj][method]" |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 01:21 PM |
Overwriting var... Fail lol. I can't believe I missed that. That variable was from earlier testing. Such a newby error, thanks guys :D
I'll post back with anymore problems I encounter. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 01:23 PM |
I was overwriting var -_- I can't believe I missed that. That variable was from earlier testing. Such a newby error, thanks guys :D
I'll post back with any problems I encounter. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 01:24 PM |
| Flood check really has to be updated... |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 20 Jun 2014 01:25 PM |
Yep. Decrease the time of Flood Check in S&H. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
| |
|