|
| 27 Jan 2015 09:33 AM |
| Like there's a line and the part is supposed to "ride" it. I don't want to weld though... |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 Jan 2015 09:35 AM |
make a tween function and have to move to one side of the line and tween to the other
I have a function for that but its not very good it was more of a proof on concept I think its in my models |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 09:36 AM |
What do you mean "one side of the line and tween to the other"?
What is my alpha for tweening |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 Jan 2015 09:42 AM |
here is a really lazy example but it works
local function tweenPart(basePart, vector0, vector1) for x = 0, 100, 1 do basePart.CFrame = CFrame.new(vector0:lerp(vector1, (x / 100))) wait() end end
local part = Instance.new("Part", workspace) part.Anchored = true
tweenPart(part, part.Position, Vector3.new(40, 50, 60)) |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2015 09:57 AM |
| kk I'll try that and play around with it ty |
|
|
| Report Abuse |
|
|