#Enemy Block Cencel

1 messages · Page 1 of 1 (latest)

worldly shoal
#

I’m tryna make it so that when an enemy lands a third combo hit, it cancels the player’s block. On the server, I check if the player is blocking like this:

    if combo < 3 then
        dmg = reducedDamage
    else
        blockValue.Value = false
    end
end```

But I don’t know how to stop the block animation on the client when this happens. The block system is in a LocalScript and plays/stops the block animation based on input:

uis.InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.F and canBlock and not isBlocking and not blockCooldown then
blockEvent:FireServer()
blockAnim:Play()
isBlocking = true
blockValue.Value = true
end
end)

uis.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F and isBlocking then
blockAnim:Stop()
isBlocking = false
blockValue.Value = false
end
end)```

rapid fog
#

ai script

worldly shoal
#

nahhh

#

the paragraph is ai cus my grammar is bad but not the script

rapid fog
#

no, all the script is ai

worldly shoal
#

how?

rapid fog
#

no one uses ai for "grammar"

worldly shoal
#

i do

rapid fog
#

no u dont

worldly shoal
#

yes i do

#

bruh

#

amma try to fix this myself

#

nahh im gonna wait till someone helps me out

#

: )

flat monolithBOT
#

studio** You are now Level 1! **studio

molten spindle
#

then in your script detect if this boolval changed

versed sleet
#

a