Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is there any way to slow down CFrame animation?

Asked by 4 years ago

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.

for i = 1, 35 do
motor.C1 = motor.C1 * CFrame.new(0.007, 0, 0)
wait(0.02)  
end

for i = 1, 5 do     
motor.C1 = motor.C1 * CFrame.new(0, 0, -1)
wait(0.06)
end 

2 answers

Log in to vote
0
Answered by 4 years ago

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.

for i = 1, 35 do
motor.C1 = motor.C1 * CFrame.new(0.007, 0, 0)
wait(1)  
end

for i = 1, 5 do     
motor.C1 = motor.C1 * CFrame.new(0, 0, -1)
wait(3)
end 

I just upped the time it waits, I don't think it'll work but it's worth the shot.

0
Already tried things like this, makes it really choppy (like its laggy) CarlPlandog 20 — 4y
0
Then attempt to remake the entire animation that's slower and re-time everything. Just2Terrify 566 — 4y
0
its CFrame animation bro CarlPlandog 20 — 4y
0
Oh right, apologies, so then is this for a part or a person? Just2Terrify 566 — 4y
View all comments (3 more)
0
You could also try using TweenSizing Just2Terrify 566 — 4y
0
Its for a part. Problem is the positioning has to be different hence the CFrame.new as it'll always be in a different position. CarlPlandog 20 — 4y
0
Jeez, this in my opinion is a bit more complicated, i'd recommend waiting for a new post but I don't know when their will be another answer. Just2Terrify 566 — 4y
Ad
Log in to vote
0
Answered by
karlo_tr10 1233 Moderation Voter
4 years ago

Maybe this will be better:

for i = 1, 70 do
motor.C1 = motor.C1 * CFrame.new(0.0035, 0, 0)
wait(0.02)  
end

for i = 1, 10 do     
motor.C1 = motor.C1 * CFrame.new(0, 0, -0.5)
wait(0.06)
end 

I increased the number of loops and decreased value of changing

0
You can slow it down even more using this methode karlo_tr10 1233 — 4y

Answer this question