Having this problem where it takes everyone I’ve hitted before and also gives them kb on the forth hit. I feel like I’m missing a really easy fix.
I’ve tried disconnect the touched event, disconnect the KB event, returning the KB function. None it worked.
local function KB()
PunchCount.Value = 0
local bv = Instance.new("BodyVelocity", hit.Parent.HumanoidRootPart)
bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.Velocity = Root.CFrame.LookVector * 50
game.Debris:AddItem(bv, 0.3)
wait(0.5)
bv:Destroy()
return
end
KBEvent.OnServerEvent:Connect(KB)