function Key(B)if B then B=string.lower(B)if B=="\120"then if on==1 then Tool.Parent.Humanoid.WalkSpeed=CurrentWalkSpeed on=0 elseif on==0 then Tool.Parent.Humanoid.WalkSpeed=WalkSpeedWhileCrouching on=1 end Crouch(on)end end end function Equip(B)B.KeyDown:connect(Key)end script.Parent.Equipped:connect(Equip)


function Key(key)
if key then
key = string.lower(key)
if (key=="x") then
if on == 1 then
Tool.Parent.Humanoid.WalkSpeed = CurrentWalkSpeed
on = 0
elseif on == 0 then
Tool.Parent.Humanoid.WalkSpeed = WalkSpeedWhileCrouching
on = 1
end
Crouch(on)
end
end
end
function Equip(mouse)
mouse.KeyDown:connect(Key)
end
script.Parent.Equipped:connect(Equip)
