This is a tool when equipped it plays a animation, i want it to go back to the start of the animation without it going fast. Is there any fix for this?
AnimationId = "248263260"
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://"..AnimationId
local Anim = Instance.new("Animation")
Anim.AnimationId = "rbxassetid://"..AnimationId
local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
k.Looped = true
k.Priority = "Action"
local Tool = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
Tool.Name = "Idle"
Tool.RequiresHandle = false
Tool.CanBeDropped = false
function Equip()
while true do
wait()
k:Play(99)
k:AdjustSpeed(2)
wait(2)
k:Stop(99)
k:AdjustSpeed(2)
wait(1)
k:Play(99)
k:AdjustSpeed(2)
end
end
function UnEquip()
k:Stop(99)
k:AdjustSpeed(2)
end
Tool.Equipped:Connect(Equip)
Tool.Unequipped:Connect(UnEquip)
