local I=playerService.LocalPlayer local n=I.Character or I.CharacterAdded:wait()local M=script.Settings function getSetting(I)return M and(M:FindFirstChild(I)and M[I].Value)end local w=getSetting("\087\097\108\107\105\110\103 \115\112\101\101\100")or 18 local P=getSetting("\082\117\110\110\105\110\103 \115\112\101\101\100")or 26 local l=false inputService.InputBegan:Connect(function(I)if I.KeyCode==Enum.KeyCode.LeftShift or I.KeyCode==Enum.KeyCode.RightShift then running=true if n.Humanoid then n.Humanoid.WalkSpeed=P end end end)inputService.InputEnded:Connect(function(I)if I.KeyCode==Enum.KeyCode.LeftShift or I.KeyCode==Enum.KeyCode.RightShift then running=false if n.Humanoid then n.Humanoid.WalkSpeed=w end end end)

local plr = playerService.LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()
local settingsDir = script.Settings

function getSetting (name)
	return settingsDir and settingsDir:FindFirstChild(name) and settingsDir[name].Value
end

local normalSpeed = getSetting("Walking speed") or 18 -- The player's walking speed (Roblox default is 16)
local sprintSpeed = getSetting("Running speed") or 26 -- The player's speed while sprinting
local sprinting = false

inputService.InputBegan:Connect(function (key)
	if key.KeyCode == Enum.KeyCode.LeftShift or key.KeyCode == Enum.KeyCode.RightShift then
		running = true
		if char.Humanoid then	
			char.Humanoid.WalkSpeed = sprintSpeed
		end
	end
end)

inputService.InputEnded:Connect(function (key)
	if key.KeyCode == Enum.KeyCode.LeftShift or key.KeyCode == Enum.KeyCode.RightShift then
		running = false
		if char.Humanoid then	
			char.Humanoid.WalkSpeed = normalSpeed
		end
	end
end)
