So I tried making a medipack with an animation which would keep your hand down.
I tried to load it in the script below but all I’m getting is
14:31:17.490 - Animation "https://assetdelivery.roblox.com/v1/asset?id=189040478&serverplaceid=0" failed to load in "Animation.AnimationId": Animation failed to load
Any fixes?
Code:
local tool = script.Parent
local cooltime = 4
local cooling = false
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://5156129075"
tool.Equipped:Connect(function()
anim.Parent = tool.Parent
local aa = tool.Parent.Humanoid:LoadAnimation(anim)
aa:Play()
end)
tool.Activated:Connect(function()
if cooling == false then
cooling = true
tool.Parent.Humanoid.Health += 20
wait(cooltime)
cooling = false
end
end)
EDIT: Seems like blocking the tool holding animation is a completely different problem.