local J=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local p=false local w=script.Parent.Blocking local P=script.Parent.BlockingStop local W=false local B=false tool.Equipped:Connect(function()p=true J.InputBegan:Connect(function(J,T)if T==false and(J.KeyCode==Enum.KeyCode.E and(p==true and(W==false and B==false)))then blockstarttrack:Play()hum.WalkSpeed=6 B=true blockholdtrack:Play()w:FireServer(hum)W=true wait(4)P:FireServer(hum)blockholdtrack:Stop()hum.WalkSpeed=16 wait(1)B=false W=false end if T==false and(J.UserInputType==Enum.UserInputType.MouseButton1 and p==true)then P:FireServer(hum)blockholdtrack:Stop()hum.WalkSpeed=16 B=false W=false end end)end)tool.Unequipped:Connect(function()p=false if W==true then hum.WalkSpeed=16 P:FireServer(hum)blockholdtrack:Stop()W=false B=false end end)
--//Other//--
local UserInputService = game:GetService("UserInputService")
local Equipped = false
local event = script.Parent.Blocking
local event2 = script.Parent.BlockingStop
local blocking = false
local debounce = false

tool.Equipped:Connect(function()
	Equipped = true
	UserInputService.InputBegan:Connect(function(Input, Typing)
		if
			Typing == false
			and Input.KeyCode == Enum.KeyCode.E
			and Equipped == true
			and blocking == false
			and debounce == false
		then
			blockstarttrack:Play()
			hum.WalkSpeed = 6
			debounce = true
			blockholdtrack:Play()
			event:FireServer(hum)
			blocking = true
			wait(4)
			event2:FireServer(hum)
			blockholdtrack:Stop()
			hum.WalkSpeed = 16
			wait(1)
			debounce = false
			blocking = false
		end
		if Typing == false and Input.UserInputType == Enum.UserInputType.MouseButton1 and Equipped == true then
			event2:FireServer(hum)
			blockholdtrack:Stop()
			hum.WalkSpeed = 16
			debounce = false
			blocking = false
		end
	end)
end)

tool.Unequipped:Connect(function()
	Equipped = false
	if blocking == true then
		hum.WalkSpeed = 16
		event2:FireServer(hum)
		blockholdtrack:Stop()
		blocking = false
		debounce = false
	end
end)
