ScriptOn
|
  |
| Joined: 22 Aug 2010 |
| Total Posts: 10885 |
|
| |
|
|
| 26 Jan 2013 07:37 PM |
| Maybe using some kind of function like findFirstChild to the model, then anchoring parts with it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jan 2013 07:38 PM |
local model = Workspace.Thingy:GetChildren() for i,v in pairs(model) do if v:IsA("Part") then v.Anchored = true end end |
|
|
| Report Abuse |
|
|
ScriptOn
|
  |
| Joined: 22 Aug 2010 |
| Total Posts: 10885 |
|
| |
|
|
| 26 Jan 2013 07:39 PM |
Your title does not relate to the subject, so I'll answer both.
Title answer:
for i,v in pairs(Workspace.Model:GetChildren()) do if v.ClassName == "Part" then v.Anchored = true end end
Subject answer:
Workspace.Model:MoveTo(Vector3.new(0,0,0) |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:39 PM |
| Well in that case idk. unless you are just moving a model not rotating it you could use "TranslateBy()" |
|
|
| Report Abuse |
|
|
ScriptOn
|
  |
| Joined: 22 Aug 2010 |
| Total Posts: 10885 |
|
| |
|
|
| 26 Jan 2013 07:40 PM |
| Workspace.Model:Moveto(Vector3.new(0,0,0)) |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:41 PM |
Yea not sure how to do that. MoveTo uses Vector3, not CFrame. So idk. |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:44 PM |
local mod = Workspace.Thingy:GetChildren()
for i,v in pairs(mod) do if v:IsA("Part") then v.CFrame = v.CFrame * CFrame.Angles(0,math.pi/2,0) end end |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:47 PM |
| Wait yeah it was GetChildren not findFirstChild.. |
|
|
| Report Abuse |
|
|