Hey all, I have an animation where a capsule will roll down a chute, however no matter what I do the animation won’t save its position at the end, it will always reset back to its original position. I’ve tried using Animation:Stopped() and Animation:Ended() to set the speed to 0 or use CFrame to get it to stay in its final position, even naming the keyframe before the last or using animation events, but no matter what it will go back to where it started. I have made sure Looping is off.
local rep = game:GetService("ReplicatedStorage")
local fCapsule = rep.FuelCapsule
local cCapsule = rep.CoolantCapsule
local fcapAnimControl = fCapsule.AnimationController
local ccapAnimControl = cCapsule.AnimationController
local fDelivEvent = rep.FuelCapsuleDeliver
local cDelivEvent = rep.CoolantCapsuleDeliver
local animID = "rbxassetid://15688301435"
local anim = Instance.new("Animation")
anim.AnimationId = animID
local fRollAnim = fcapAnimControl:LoadAnimation(anim)
local cRollAnim = ccapAnimControl:LoadAnimation(anim)
fDelivEvent.Event:Connect(function()
fRollAnim.Looped = false
fCapsule.Parent = workspace
fRollAnim:Play()
end)
--cCapsule will just be a copy of the above script once I finish it.