How do I load animations into a bloxy cola tool?

The animation priority is Action, yes.

When using the animator:LoadAnimation() method it returns an animation track you can reference like so:
β€˜β€™β€™
local animationTrack = Animator:LoadAnimation(NewAnimation)
β€˜β€™β€™
You then play the animation track using the method :Play() on the animation track to see the animation. For you it would look like:
β€˜β€™β€™
local animationTrack = Animator:LoadAnimation(NewAnimation)

animationTrack:Play()
β€˜β€™β€™
Don’t forget to mark this post as a solution if it works! :slight_smile:

1 Like

Thank you! Could you tell me where in the script I would put this, please? :

--Varibles
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local DrinkSound = Handle:WaitForChild("DrinkSound")
local OpenSound = Handle:WaitForChild("OpenSound")
local animId = "rbxassetid://7210431772"
local NewAnimation = Instance.new("Animation")
NewAnimation.Parent = Tool
NewAnimation.AnimationId = animId
NewAnimation.Name = "Drink Animation"
local ToolCooldown = 1

function ToolActivated()
	    local Character = Tool.Parent
    local Humanoid = Character:WaitForChild("Humanoid")
    local Animator = Humanoid:WaitForChild("Animator")

    Animator:LoadAnimation(NewAnimation)
    DrinkSound:Play()
    wait(ToolCooldown)
end

function ToolEquip()
    OpenSound:Play()
end

Tool.Activated:Connect(ToolActivated)
Tool.Equipped:Connect(ToolEquip)

Replace the
β€˜β€™β€™
Animator:LoadAnimation(NewAnimation)
β€˜β€™β€™
with:
β€˜β€™β€™
local animationTrack = Animator:LoadAnimation(NewAnimation)

animationTrack:Play()
β€˜β€™β€™
Glad I could help :slight_smile:

1 Like