I am working on a tool ( a type of drink ) that when activated removes the cap of the bottle and then playes a animation. The Animation doesn’t work and I get this error:
I am for sure doing something wrong but I can’t find why. Could sombody maybe help me?
The Code:
local AnimationID = 18317418600
script.Parent.Activated:Connect(function(player)
local Hum = script.Parent.Parent:FindFirstChild("Humanoid")
script.Parent.Handle.WeldConstraint:Destroy()
local Animation = Instance.new("Animation")
Animation.AnimationId = AnimationID
Animation.Name = "Drink_Animation"
local AnimationTrack = Hum:LoadAnimation(Animation)
AnimationTrack:Play()
end)
It did play the animation but it didn’t move the arm, Do you maybe know why this is. I made the Animation with a R15 avatar and my avatar also is R15 so I dont think it has to do with the type of avatar.