UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 01 Apr 2014 04:37 PM |
I am trying to make this go slower without losing its smoothness (so increasing wait will not work). How can I do it? Dividing z will just reduce its distance.
local defaultCFrame = script.Parent.CFrame while wait(1/5) do for i = 1,360 do local z = math.sin(i) script.Parent.CFrame = defaultCFrame + Vector3.new(0,0,z) wait(1/30) end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 01 Apr 2014 04:44 PM |
| faster update time (change the wait(1/5) to like, 1/25 and make z/5) |
|
|
| Report Abuse |
|
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 01 Apr 2014 04:46 PM |
Even though what you said is exactly what I said not to do, I got the answer anyway.
local defaultCFrame = script.Parent.CFrame local speed = 25 while wait(1/5) do for i = 1,360*speed do local z = math.sin(i/speed) script.Parent.CFrame = defaultCFrame + Vector3.new(0,0,z) wait(1/30) end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 01 Apr 2014 04:57 PM |
| Oops, I didn't read your post correctly. My bad |
|
|
| Report Abuse |
|
|