i am making a boss attack, and i want it to hurt the player while the animation is playing but it doesn’t seem to fire the touch event while the animation is playing
this is the damage script im not sure why that wouldnt work
local db = false
script.Parent.Touched:Connect(function(op)
print(op)
if db == false and op.Parent:FindFirstChild("Humanoid") then
db = true
print("touchedhuman")
op.Parent:FindFirstChild("Humanoid"):TakeDamage(35)
wait(1)
db = false
end
end)
if it makes a difference the part that is registering the touched event is a union