Ping seems to go up at the end of a combo?

Hello, i have recently noticed that my ping went up in game when i finished a combo. Using raycasthitbox.

Try to see if same happens with you, to fight use the tool thats in your inventory.
Also, idk whats the best way to make a combo system but this is my current combat tool.


--7891359828
--7891483908

local Player = script.Parent.Parent.Parent
Player.CharacterAdded:Wait()

local Character = script.Parent.Parent.Parent.Character
local dmgpoint1 = Instance.new("Attachment")
dmgpoint1.Position = Vector3.new(0, -2.198, 0)
dmgpoint1.Name = "DmgPoint"
dmgpoint1.Parent = Character["Right Arm"]

local dmgpoint2 = Instance.new("Attachment")
dmgpoint2.Position = Vector3.new(0, -2.198, 0)
dmgpoint2.Name = "DmgPoint"
dmgpoint2.Parent = Character["Left Arm"]

local dmgpoint3 = Instance.new("Attachment")
dmgpoint3.Position = Vector3.new(0, -2.052, -0.662)
dmgpoint3.Name = "DmgPoint"
dmgpoint3.Parent = Character["Left Leg"]

local dmgpoint4 = Instance.new("Attachment")
dmgpoint4.Position = Vector3.new(0, -2.052, -0.662)
dmgpoint4.Name = "DmgPoint"
dmgpoint4.Parent = Character["Right Leg"]

local dmgpoint5 = Instance.new("Attachment")
dmgpoint5.Position = Vector3.new(0, 0, -3.273)
dmgpoint5.Name = "DmgPoint"
dmgpoint5.Parent = Character.HumanoidRootPart


local raycastHitbox = require(game:GetService("ReplicatedStorage").RaycastHitboxV4)
local Hitbox = raycastHitbox.new(Character)
print(Character.Name)
local combo = 0
local Damage = 10
local player = script.Parent.Parent.Parent.Character
local humanoid = player:WaitForChild("Humanoid")
wait(1)
local idleanim = Instance.new("Animation")
idleanim.AnimationId = "rbxassetid://7891324866"
local idletrack = humanoid:LoadAnimation(idleanim)
local attackanim = Instance.new("Animation")
attackanim.AnimationId = "rbxassetid://7891446786"
local attacktrack = humanoid:LoadAnimation(attackanim)
local attackanim2 = Instance.new("Animation")
attackanim2.AnimationId = "rbxassetid://7891598405"
local attacktrack2 = humanoid:LoadAnimation(attackanim2)
local attackanim3 = Instance.new("Animation")
attackanim3.AnimationId = "rbxassetid://7891627933"
local waittime = 0.5
local db = false
local attacktrack3 = humanoid:LoadAnimation(attackanim3)
local combodone = false
script.Parent.Activated:Connect(function()
	local stun = script.Parent.Parent.stun
	if stun.Value == false then
		if db == false then
			if combodone == false then
				Character.Humanoid.WalkSpeed = 4
				db = true
				if combodone == false then
					if combo < 3 then
						Hitbox:HitStart() 
					end
				end
				Hitbox.OnHit:Connect(function(hit, humanoid)
					if humanoid.Parent.Name ~= script.Parent.Parent.Name then
						humanoid:TakeDamage(Damage)
						script.Parent.Sound:Play()
						humanoid.Parent.stun.Value = true
						if combo == 3 then
							local vel = Instance.new("BodyVelocity")
							vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
							humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
							vel.Velocity = Character.HumanoidRootPart.CFrame.LookVector * 20
							vel.Name = "vel"
							vel.Parent = hit
							wait(0.5)
							waittime = 0.5
							vel:Destroy()
						end
						wait(waittime)
						waittime = 0.5
						humanoid.Parent.stun.Value = false
					end
				end)
				if combo == 0 then
					attacktrack:Play()
					combo += 1
				elseif combo == 1 then
					attacktrack2:Play()
					combo += 1
				elseif combo == 2 then
					attacktrack3:Play()
					combo += 1
				elseif combo == 3 then
					combodone = true
					combo = 0
					Character.Humanoid.WalkSpeed = 16
					wait(0.2)
					Hitbox:HitStop()
					wait(0.1)
					combodone = false
				end
				wait(0.2)
				Hitbox:HitStop()
				wait(0.1)
				Character.Humanoid.WalkSpeed = 16
				db = false
			end
		end
	end
end)

script.Parent.Equipped:Connect(function()
	idletrack:Play()
end)

script.Parent.Unequipped:Connect(function()
	idletrack:Stop()
end)

Please help, its a pretty big issue as you go up like 700 ping so like uhh…