local remote = game.ReplicatedStorage.Kick1
remote.OnServerEvent:Connect(function(plr,Mouse,db)
	local dmg = false
	local Enabled = true
	db = true
	wait(1)
	local void = Instance.new("Part")
	void.Shape = "Cylinder"
	void.Transparency = 0
	void.Anchored = true
	void.Size = Vector3.new(3, 33.47, 6.34)
	void.CanCollide = false
	void.CFrame = plr.Character["Left Leg"].CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0, 0, 80.1)
	void.BrickColor = BrickColor.new("Really black")
	void.Material = "Metal"
	void.Parent = game.Workspace
	wait()
	void.Size = Vector3.new(0.33, 33.47, 6.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 37.47, 10.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 39.47, 12.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 41.47, 14.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 43.47, 16.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 45.47, 18.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 47.47, 20.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 49.47, 22.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 51.47, 24.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 53.47, 26.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 55.47, 28.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 57.47, 30.34)
	wait(0.5)
	void.Size = Vector3.new(0.33, 59.47, 32.34)
	
	
    ---damage part
void.Touched:Connect(function(hit)
			local hum = hit.Parent:FindFirstChild("Humanoid")
			if hit.Parent:FindFirstChild("Humanoid") == nil then return end
			if dmg == false then
				dmg = true
				if hum.Parent == plr.Character then
		        hum.Health = hum.Health - 0
				else 
					hum.Health = hum.Health -  45
		   end
	    end
end)
wait(5)
	 plr.Character["Right Arm"].Transparency = 0
	void:Destroy()
	db = false
end)

1 comment

0

I think you just need to swap line 52 and line 54. That should fix it.