local UIS = game:GetService("UserInputService")
local humanoid = script.Parent:WaitForChild("Humanoid")
local sprinting = false
UIS.InputBegan:Connect(function(input, gpe)
if gpe or input.KeyCode ~= Enum.KeyCode.LeftShift then return end
sprinting = not sprinting
humanoid.WalkSpeed = sprinting and 26 or 16
end)