the title says it all
local function Sprints(actionName, inputState, inputObject)
if actionName == "StartSprint" then
if inputState == Enum.UserInputState.Begin then
if Humanoid.MoveDirection.Magnitude > 0 and StaminaValue.Value >2 then
print("Player Sprinting")
print(inputState)
Running = true
Character.Humanoid.WalkSpeed = speed
tween:Play()
elseif inputState == Enum.UserInputState.End then
Character.Humanoid.WalkSpeed = norm_spd
Running = false
tween2:Play()
end
end
end
end