ndc08
|
  |
| Joined: 30 Dec 2012 |
| Total Posts: 15 |
|
|
| 14 Jun 2015 04:58 PM |
ok heres what i want the script to do i want it to go threw the model i set it to and change each parts name basically i want each part to have a different name 1-100
--[script]-- wait(4) a = 0 part = game.Workspace.test:GetChildren()
for i = 1,100 do wait() a = a + 1 local rp = part[math.random(1,#part)] b = game.Workspace.test:FindFirstChild(rp.Name) if rp.Name == b then else rp.Name = a end
end please help me:( |
|
|
| Report Abuse |
|
|
| 14 Jun 2015 05:03 PM |
local modelChildren = workspace.Model:GetChildren()
for i = 1, #modelChildren do modelChildren[i].Name = i end
will keep going after 100 if there are more children |
|
|
| Report Abuse |
|