local tool = script.Parent
local id = "rbxassetid://97572223426399"
local yumheartanim = tool:WaitForChild("yumheart")
yumheartanim.AnimationId = id
local heartremotevent = game:WaitForChild("ReplicatedStorage"):WaitForChild("HeartRemoteEvent")
tool.Activated:Connect(function()
local character = tool.Parent
local player = game.Players:GetPlayerFromCharacter(character)
local animator = character:WaitForChild("Humanoid"):WaitForChild("Animator")
local yumheartanimtrack = animator:LoadAnimation(yumheartanim)
yumheartanimtrack:Play()
print("yo animatioon")
if yumheartanimtrack.IsPlaying then
print("it is playing!")
end
if player then
local playerhearts = player:FindFirstChild("Hearts")
if playerhearts.Value == 3 then
return
else
playerhearts.Value += 1
heartremotevent:FireClient(player, playerhearts, "HeartPlus")
--tool:Destroy()
end
end
end)
so as the title says the animation wont play, i dont know why i added prints they print so it means that it works, but i dont see nothing
it has keyframes
what can i do? any help is greatly appreciated! (btw the animation is set to action3)
