So as some moving door animations on a train I'm working on, I'm using CFrame animation. Is there any way I could slow it down without making it "choppy" as at the moment it is a bit too fast.
1 | for i = 1 , 35 do |
2 | motor.C 1 = motor.C 1 * CFrame.new( 0.007 , 0 , 0 ) |
3 | wait( 0.02 ) |
4 | end |
5 |
6 | for i = 1 , 5 do |
7 | motor.C 1 = motor.C 1 * CFrame.new( 0 , 0 , - 1 ) |
8 | wait( 0.06 ) |
9 | end |
Well the animation has to load, so if you want to make it so it's a bit more slower, you could either make a new animation that's a bit more longer or see if this works.
1 | for i = 1 , 35 do |
2 | motor.C 1 = motor.C 1 * CFrame.new( 0.007 , 0 , 0 ) |
3 | wait( 1 ) |
4 | end |
5 |
6 | for i = 1 , 5 do |
7 | motor.C 1 = motor.C 1 * CFrame.new( 0 , 0 , - 1 ) |
8 | wait( 3 ) |
9 | end |
I just upped the time it waits, I don't think it'll work but it's worth the shot.
Maybe this will be better:
1 | for i = 1 , 70 do |
2 | motor.C 1 = motor.C 1 * CFrame.new( 0.0035 , 0 , 0 ) |
3 | wait( 0.02 ) |
4 | end |
5 |
6 | for i = 1 , 10 do |
7 | motor.C 1 = motor.C 1 * CFrame.new( 0 , 0 , - 0.5 ) |
8 | wait( 0.06 ) |
9 | end |
I increased the number of loops and decreased value of changing