Hey guys. So, I made an animation for a sword animation. Here is the original animation:
https://i.gyazo.com/347696a96bf4fa36b7c1ce393544458f.mp4
However, when I play the animation in a script as an M1, body parts randomly disappear. Anyone have ideas on why this is happening? This is what is going on in game.
https://i.gyazo.com/6740b32cf4a89c6cb4b762ea75d268ba.mp4
Here is the actual script for the kit.
THIS IS ONLY PART OF THE SCRIPT, THE IMPORTANT PART. THE ACTUAL ENTIRE SCRIPT IS NOT NEEDED.
if action == "M1" then
if tick() - lastM1 > m1CD then
combo1Track:Play()
combo1Track.KeyframeReached:Connect(function(kfName)
if kfName == "HitboxStartFrame" then
newHitbox:HitStart()
elseif kfName == "HitboxStopFrame" then
newHitbox:HitStop()
end
end)
newHitbox.OnHit:Connect(function(hit, humanoid)
humanoid:TakeDamage(3)
end)
m1CD = combo1Track.Length + 0.1
lastM1 = tick()
end
end