udayk8139
|
  |
| Joined: 25 Aug 2013 |
| Total Posts: 622 |
|
|
| 17 May 2015 04:09 AM |
I am making something which needs the parts to move..
so I made some script like this..
function Pulldown() local parts = script.Parent:GetChildren() for _,v in pairs(parts) do if v:IsA("BasePart") or v:IsA("UnionOperation") then v.CFrame = v.CFrame * CFrame.new(0,10,0) end end end
The problem here is, that the part is moved 10 studs up but the Union which is in the same group isn't moving... |
|
|
| Report Abuse |
|
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 17 May 2015 04:33 AM |
Using command line, this worked for me:
for k, v in pairs(workspace:GetChildren()) do if v:IsA("UnionOperation") then v.CFrame = v.CFrame + Vector3.new(0, 10, 0) end end
~ᵂʰᵒ ᵃʳᵉ ʸᵒᵘ ᵗᵒᵈᵃʸ﹖~ |
|
|
| Report Abuse |
|
|
| |
|
Intern33t
|
  |
| Joined: 19 Nov 2010 |
| Total Posts: 1530 |
|
|
| 17 May 2015 04:36 AM |
It would make sense if you did just BasePart or Part + UnionOperation then
~ᵂʰᵒ ᵃʳᵉ ʸᵒᵘ ᵗᵒᵈᵃʸ﹖~ |
|
|
| Report Abuse |
|
|
|
| 17 May 2015 04:56 AM |
how about just using model:TranslateBy(Vector3.new(0,10,0)) instead?
http://wiki.roblox.com/index.php?title=API:Class/Model/TranslateBy |
|
|
| Report Abuse |
|
|