for i,v in pairs(GetTouchingPartsModule.Function(hitbox)) do
if v.Parent ~= player.Character and v.Name == "HitBox" then
if not v.Parent:FindFirstChild("ForceField") then
local player2 = game.Players:FindFirstChild(v.Parent.Name)
local blocking = BlockingList:FindFirstChild(v.Parent.Name)
if blocking then
v.Parent.Humanoid.Health = v.Parent.Humanoid.Health - blockedDamage
Tag.Function(player)
if player2 then
Tag.Function(player2)
HitBlocked.Function(v.Parent,player2)
else
HitBlocked.Function(v.Parent)
end
else
Combo.Add(player)
ComboTimer:Reset()
ComboTimer:Start()
M1Module.Function(v.Parent,player)
v.Parent.Humanoid.Health = v.Parent.Humanoid.Health - Damage
Tag.Function(player)
if player2 then
Tag.Function(player2)
end
ComboTimer.Completed:Connect(function()
Combo.Stop(player)
end)
end
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local combo = {}
function combo.Add (player)
local combo = player.PvPStats:FindFirstChild("Combo")
if not combo then
local combo = Instance.new("NumberValue")
combo.Name = "Combo"
combo.Parent = player.PvPStats
combo.Value = combo.Value + 1
else
combo.Value = combo.Value + 1
end
end
function combo.Stop (player)
local combo = player.PvPStats:FindFirstChild("Combo")
combo.Value = 0
end
return combo
my combo script rn if anyones wondering