--function onSelected(mouse)

print("1")
	mouse.Icon = "rbxasset://textures\\GunCursor.png"
print("1")
	mouse.KeyDown:connect(onKeyDown)
print("1")
end
print("1")

function onKeyDown(key)
	if (key~=nil) then
		key = key:lower()
local blade = script.Parent.Handle2
		if (key=="z")  then
blade.Transparency = 0.5
blade.Sound:Play()
			end

			if (key=="x") then
blade.Transparency = 1
blade.Sound:Play()
		 end
	end
end
Tool.Equipped:connect(onEquippedLocal)