UserInputService.InputBegan:Connect(function(c,A)if not A then if c.KeyCode==Enum.KeyCode.LeftShift then if isRunning then Character.Humanoid.WalkSpeed=40 end end end end)UserInputService.InputEnded:Connect(function(c,A)if not A then if c.KeyCode==Enum.KeyCode.LeftShift then Character.Humanoid.WalkSpeed=16 end end end)task.wait(1);(Character.Humanoid:GetPropertyChangedSignal("\077\111\118\101\068\105\114\101\099\116\105\111\110")):Connect(function()if Character.Humanoid.MoveDirection.Magnitude>0 then isRunning=true else isRunning=false end end)
--local NormalWalk = Character.WalkSpeed
UserInputService.InputBegan:Connect(function(input, processing)
	if not processing then
		if input.KeyCode == Enum.KeyCode.LeftShift then
			if isRunning then
				Character.Humanoid.WalkSpeed = 40
			end
		end
	end
end)

UserInputService.InputEnded:Connect(function(input, processing)
	if not processing then
		if input.KeyCode == Enum.KeyCode.LeftShift then
			Character.Humanoid.WalkSpeed = 16
		end
	end
end)

task.wait(1)
Character.Humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
	if Character.Humanoid.MoveDirection.Magnitude > 0 then
		isRunning = true
	else
		isRunning = false
	end
end)
