So am porting my sprinting to mobile problem

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
	

My speed doesnt go back to the base speed