revving
|
  |
| Joined: 08 May 2014 |
| Total Posts: 9 |
|
|
| 26 Apr 2015 01:18 PM |
| can someone make a script for me that moves a part from point 1 to point 2 and slows down as it approaches its goall |
|
|
| Report Abuse |
|
|
| |
|
revving
|
  |
| Joined: 08 May 2014 |
| Total Posts: 9 |
|
| |
|
revving
|
  |
| Joined: 08 May 2014 |
| Total Posts: 9 |
|
| |
|
revving
|
  |
| Joined: 08 May 2014 |
| Total Posts: 9 |
|
|
| 26 Apr 2015 01:45 PM |
well i decided to make it try and speed up as it nears the goal but this doesnt work
setfenv(1, setmetatable({sleep = wait}, {__index = getfenv(0)})) local instance_part0 = workspace.Part local float_ = math.sqrt(2)/2 local v3_dir = Vector3.new(float_, 0, float_) local v3_start = instance_part0.Position local v3_goal = v3_start + 50*v3_dir
local int_frames = 100 local float_time = 0.5
sleep(3); for int_current = 0, 1, 1/(float_time*int_frames) do sleep(); int_current ^= 2 instance_part0.CFrame = CFrame.new(v3_start:Lerp(v3_goal, int_current)) end
|
|
|
| Report Abuse |
|
|
revving
|
  |
| Joined: 08 May 2014 |
| Total Posts: 9 |
|
| |
|
revving
|
  |
| Joined: 08 May 2014 |
| Total Posts: 9 |
|
| |
|