I'm not able to make the block damage, what do I do?

local UIS = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local char = player.Character or workspace:WaitForChild(player.Name)
UIS.InputBegan:connect(function(Input, GPE, Mouse)
	if GPE then return end
	if Input.KeyCode == Enum.KeyCode.Z then
		
		local rs = game:GetService("ReplicatedStorage")
		local gomugui = rs:WaitForChild("gomu"):Clone()
		gomugui.skill1.Text = "Colldown 5 Seconds..."
		
		print("Gomu Gomu no Pistol")
		
		local animation = Instance.new("Animation")
		animation.AnimationId = "rbxassetid://04931658843"
		local loader = char.Humanoid:LoadAnimation(animation)
		loader:Play()
		
		
		char.RightUpperArm.Transparency = 1
		char.RightLowerArm.Transparency = 1
		char.RightHand.Transparency = 1
		
		local gp = Instance.new("Part",char)
		gp.Material = Enum.Material.SmoothPlastic
		gp.BrickColor = char.LeftUpperArm.BrickColor
		gp.CanCollide = false
		gp.Size = Vector3.new(1,1,8)
		local weld = Instance.new("Weld",char)
		weld.Part0 = char:WaitForChild("HumanoidRootPart")
		weld.Part1 = gp
		weld.C1 = CFrame.new(-1,-0.69,-4)	
	    char.Humanoid.WalkSpeed = 0
		char.Humanoid.JumpPower = 0
		
		wait(5)
				loader:Stop()
				local anim2 = Instance.new("Animation")
		anim2.AnimationId = "rbxassetid://04931667482"
		local loader2 = char.Humanoid:LoadAnimation(anim2)
		loader2:Play()
		gp.Size = Vector3.new(1,1,8)
		weld.C1 = CFrame.new(-1,-0.69,4.5)
		
			wait(5)
			gomugui.skill1.Text = "Z = Gomu Gomu no Pistol"
			 gp:Destroy()
			char.Humanoid.WalkSpeed = 16
			char.Humanoid.JumpPower = 50
			loader2:Stop()
		char.RightUpperArm.Transparency = 0
		char.RightLowerArm.Transparency = 0
		char.RightHand.Transparency = 0
		
		 gp.Touched:connect(function(hit)
				  if hit.Parent:FindFirstChild('Humanoid') and hit.Parent.Name ~= player.Name then
					local buffgs = script.Parent.GearSecond.Buff
        local Enemy = hit.Parent.Humanoid
         Enemy:TakeDamage(20 + buffgs.Value)
   gp:Destroy()
		loader2:Stop()
		char.RightUpperArm.Transparency = 0
		char.RightLowerArm.Transparency = 0
		char.RightHand.Transparency = 0
		
		 end
		end)
		end
		end)