remotes.dodge.OnServerEvent:Connect(function(player) -- reduce incoming damage for next 0.5 sec end)
-- Connect remote events remotes.punch.OnServerEvent:Connect(function(player, punchType) handlePunch(player, punchType) end)
remotes.block.OnServerEvent:Connect(function(player, isBlocking) -- store blocking state per player end)
UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end local key = input.KeyCode local action = keybinds[key] if action then if action == "block" then remotes.block:FireServer(true) elseif action == "dodge" then remotes.dodge:FireServer() elseif action == "special" then remotes.special:FireServer() else -- punch remotes.punch:FireServer(action) end end end)







