I have this tool that when you interact it is gonna play an animation. but for some reason the animation isn't playing. any help would be great! also, nothing has been printing in the output here is the code:
local Players = game:GetService("Players")
local character = Players.LocalPlayer.Character
if not character then
character = Players.LocalPlayer.CharacterAdded:Wait()
end
local humanoid = character:WaitForChild("Humanoid")
local drinkAnim = Instance.new("Animation", character)
drinkAnim.Name = "DrinkAnim"
local drinkAnimID drinkAnim.AnimationId = "rbxassetid://10128937781"
local animTrack = humanoid:LoadAnimation(drinkAnim)
script.Parent.Handle.Drink.Triggered:Connect(function()
script.Parent.Handle.Drink.Enabled = false
animTrack:Play()
script.Parent.Handle.DrinkSound:Play()
wait(1)
script.Parent:Destroy()
end)

1 comment
still dosnt work i tried putting a print and it prints i suppose theres somthing wrong wirth the animation