| |
|
Azeroth17
|
  |
| Joined: 13 May 2014 |
| Total Posts: 86 |
|
|
| 14 May 2014 12:22 PM |
Again, very new to the ROBLOX API so if this is completely wrong forgive me.
model[i].CFrame = CFrame.new(0, 10, 0)
What this is doing is making all the parts move to that position, not move up by that amount.
Try this:
model[i].CFrame = CFrame.new(model[i].CFrame + Vector3.new(0,10,0))
|
|
|
| Report Abuse |
|
|
| |
|
Azeroth17
|
  |
| Joined: 13 May 2014 |
| Total Posts: 86 |
|
|
| 14 May 2014 12:32 PM |
| model[i].CFrame = model[i].CFrame + Vector3.new(0,10,0) |
|
|
| Report Abuse |
|
|
|
| 14 May 2014 12:37 PM |
| model[i].CFrame = CFrame.new(model[i].Position + Vector3.new(0,10,0)) |
|
|
| Report Abuse |
|
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 14 May 2014 01:32 PM |
| model:TranslateBy(Vector3.new(0,10,0)) |
|
|
| Report Abuse |
|
|
|
| 14 May 2014 01:32 PM |
model = script.Parent.Model:GetChildren() wait(3)
for _, v in pairs(model) do if v:IsA"BasePart" then v.CFrame = v.CFrame * CFrame.new(0,0,0) --edit this to how far it goes end end
|
|
|
| Report Abuse |
|
|