I'm trying remake a boss, with one script for several boss attacks instead of a script that disables or enables several other scripts.
Problem is that mine one-shots the player when it touchs them.
function Slash2() --Huge slash
local e = workspace.Guard.HugeSlash
e.Touched:connect(function(hit)
if hit.Parent~=nil then
if hit.Parent:findFirstChild'Humanoid' then
hit.Parent.Humanoid:TakeDamage(28)
hit.Parent.Torso.Velocity=push.CFrame.lookVector * 200 -- PUSH THE CASUL.
end
end
end)
end
The other attack is identicle to this function, with the exception of the "e" variable.

1 comment
Try using using a debounce