MyDominus
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 174 |
|
|
| 25 Oct 2015 11:59 AM |
function removeLag(obj) obj.Name=obj.Name .. " " for v,i in pairs(obj:GetChildren()) do removeLag(v) end end removeLag(workspace)
it says attempt to index local 'obj' (a number value) why v means the obj it is referring to right?
the goal of this is to make a invisible space on each thing in workspace so it would break the game they put the model in. |
|
|
| Report Abuse |
|
|
BRAYONCE
|
  |
| Joined: 18 Apr 2011 |
| Total Posts: 1551 |
|
|
| 25 Oct 2015 12:14 PM |
#code function removeLag(obj) obj.Name=obj.Name.." " for _,v in pairs(obj:GetChildren()) do removeLag(v) end end removeLag(game.workspace)
just ftr that is gonna loop through a path until there is nothing left
#code Forums.BRAYONCE.Response:FireClient(response) |
|
|
| Report Abuse |
|
|
MyDominus
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 174 |
|
| |
|
MyDominus
|
  |
| Joined: 25 Feb 2014 |
| Total Posts: 174 |
|
|
| 25 Oct 2015 12:17 PM |
| u made a mistake it is game.Workspace not game.workspace |
|
|
| Report Abuse |
|
|