The Animation works in studio but not in the game itself for it also works in my Showcase game, in the game itself, which is confusing, The damage isn't working as stated in the title. If anyone could help me on this it'd be great. Thanks
Script
script.Parent.Blade.Touched:connect(function(p) if script.Parent.Damage.Value == true then script.Parent.Damage.Value = false p.Parent.Humanoid:TakeDamage(20) end end)
Local Script
local CanAttack = true script.Parent.Activated:connect(function() local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack) if CanAttack == true then attack:Play() CanAttack = false wait(1) attack:Stop() CanAttack = true script.Parent.CanDamage.Value = true end end)