-- Running --

local function Run(input)
	if input.KeyCode == Enum.KeyCode.LeftShift then
		Running = true
		humanoid.WalkSpeed = 30

		while Running and Stamina2.MinValue > 0 do
			Stamina2.MinValue -= 2	
			wait(.01)
		end
		if Stamina2.MinValue <= 20 then
			humanoid.WalkSpeed = 16
		end
	end
end
UIS.InputBegan:Connect(Run)


