|
| 25 Aug 2011 08:29 PM |
items = game.Workspace.ActiveParts:GetChildren() thisistrue = true while thisistrue do items:GetChildren(Children.anchored.true) end
INFO: The parts under the model "ActiveParts" are more models of people in the game. Then I want (in line 4) for items to get children (the parts in the player models) And I want all of those parts there anchored... I think this script is totally wrong. I'm a beginner scripter. Help. |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Aug 2011 08:36 PM |
| Well I can only script great with guns, not players, I just made my first player script now, I just posted to see if it worked, But I think you need to try something else. |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Aug 2011 08:43 PM |
variable1 = variable2:GetChildren() for i = 1,#variable1 do --INSERT STATEMENTS FOR CHILDREN end |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 08:44 PM |
items = game.Workspace.ActiveParts:GetChildren()
for i = 1, #items do items[i].Anchored = true end
-Like an AWESOME boss |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 08:46 PM |
@ElectriceBlaze Anchored is not a valid member of Model |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 08:47 PM |
items = game.Workspace.ActiveParts:GetChildren()
for i = 1, #items do if items[i].className == "Part" then items[i].Anchored = true end end
-Like an AWESOME boss |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 08:48 PM |
@ElectricBlaze No errors, Im going to give it a shot |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Aug 2011 08:51 PM |
Easier.
for i, v in pairs(game.Players:GetPlayers()) do if workspace:findFirstChild(v.Name) then for _, z in pairs(v.Character:GetChildren()) do if z:IsA("Part") then z.Anchored = true end end end end |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 08:55 PM |
@darkkiller Im not sure if that works CUZ IM LAGGING WHEN I PUT SCRIPT IN im checkin it out |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 08:56 PM |
| nope doesnt work man this will never be solved probably because im doing something wrong and this will never work imma delete my sandbox game soon maybe this isnt working waaaaa |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2011 08:58 PM |
| brb i will be back in about 10 hours im sleepin now bye |
|
|
| Report Abuse |
|
|
| |
|