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)```
** You are now Level 1! **