--Edited by Stickmasterluke


Tool=script.Parent

enabled = true
function onButton1Down(mouse)
	if not enabled then
		return
	end

	enabled = false
	mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"

	wait(.5)
	mouse.Icon = "rbxasset://textures\\GunCursor.png"
	enabled = true

end

flyen = true
function onEquippedLocal(mouse)
	if mouse == nil then
		print("Mouse not found")
		return 
	end
	
	mouse.KeyDown:connect(function(key)
		if key == "e" and flyen then
			flyen = false
			char = Tool.Parent
			char.Torso.Velocity = char.Torso.Velocity + Vector3.new(0,80,0) + (char.Torso.CFrame.lookVector * 80) 
			wait(0.5)
			flyen = true 
		end
	end)
	
	mouse.Icon = "rbxasset://textures\\GunCursor.png"
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


Tool.Equipped:connect(onEquippedLocal)

wait(1) 
