I can't run animations, I created several, none of them work, I got them from other people and they don't work either, the id is placed correctly inside the animation inside the tool
This is mine 135771276393075, 83789863932865
This is the one I got from the internet 94067498376608
and when it works it makes an animation other than the one I made
local RayCastHitBox = require(game.ReplicatedStorage.RaycastHitboxV4)
local tool = script.Parent
local HitBox = RayCastHitBox.new(script.Parent.Handle)
HitBox.Visualizer = true
local CurrentHumanoid
local CurrentAnimation
local db = true
script.Parent.Equipped:Connect(function()
if CurrentAnimation == nil then
CurrentAnimation = tool.Parent.Humanoid.Animator:LoadAnimation(script.Animation)
end
end)
script.Parent.Activated:Connect(function()
if db then
db = false
HitBox:HitStart(.8)
if CurrentAnimation and CurrentAnimation.IsPlaying then
CurrentAnimation:Stop()
else
CurrentAnimation:Play()
end
task.wait(.7)
db = true
end
end)
HitBox.OnHit:Connect(function(Part, Humanoid)
if Humanoid and Humanoid ~= script.Parent.Parent.Humanoid then
Humanoid:TakeDamage(15)
end
end)