|
| 20 Aug 2017 12:02 AM |
local goal = script.Parent.PrimaryPart.CFrame+Vector3.new(55,55,0)
game:GetService('RunService').Heartbeat:connect(function(step) print'me' script.Parent.PrimaryPart.CFrame:lerp(goal,step/2) end) |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2017 12:08 AM |
| halp ;( It won't even move... It prints and all meaning its going but the lerp doesn't work at all. |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Aug 2017 12:11 AM |
primarypart.CFrame = cframe:lerp
|
|
|
| Report Abuse |
|
|
|
| 20 Aug 2017 12:11 AM |
| Exactly what I'm doing tho |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2017 12:12 AM |
??
script.Parent.PrimaryPart.CFrame = script.Parent.PrimaryPart.CFrame:lerp(goal,step/2)
|
|
|
| Report Abuse |
|
|
|
| 20 Aug 2017 12:12 AM |
| RIP didn't notice, this is why I use the forum :D |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2017 12:14 AM |
| The only issue is that it only moves the part not the model... ;( |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 20 Aug 2017 01:07 AM |
youtube.com/watch?v=n-ALVU_SU4Y youtube.com/watch?v=IkE7rz_qT4w
script.Parent.PrimaryPart.CFrame = script.Parent.PrimaryPart.CFrame:lerp(goal,step/2) |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 20 Aug 2017 01:08 AM |
| Just weld everything to the primary part, have primary part as part0 of the welds. |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 20 Aug 2017 01:11 AM |
Alternative:
script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame:lerp(goal,step/2))
|
|
|
| Report Abuse |
|
|
|
| 20 Aug 2017 01:13 AM |
| I did weld them to it, and it still doesn't work. |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
| |
|
|
| 20 Aug 2017 01:26 AM |
| ^ I tried the welding and stuff :/ |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 20 Aug 2017 01:29 AM |
SetPrimaryPartCFrame will work regardless (anchored or welded)
local goal = script.Parent.PrimaryPart.CFrame+Vector3.new(55,55,0)
game:GetService('RunService').Heartbeat:connect(function(step) print'me' script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame:lerp(goal,step/2)) end) |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2017 01:37 AM |
| I might have messed up my welds, do you have anything for that? |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 20 Aug 2017 01:38 AM |
Messed up how? You could I guess use the GetDescendants method and delete any/all jointinstances in the model |
|
|
| Report Abuse |
|
|