Error CS0029: Cannot implicitly convert type `bool' to `float'

using UnityEngine;
using System.Collections;

public class RightMovement : MonoBehaviour {

	public float maxSpeed = 10f;
	bool facingRight = true;


	void Start() {}

	void FixedUpdate() {
		
		float move = (Input.GetAxis("Horizontal") > 0);	
		rigidbody2D.velocity = new Vector2 (move * maxSpeed, rigidbody2D.velocity.y);

	}
}

I keep getting this error:
Assets/Scripts/RightMovement.cs(14,23): error CS0029: Cannot implicitly convert type bool' to float’

I want to use Input.GetAxis(“Horizontal”), but I only want the sprite to move towards the right.

You basically have an if statement being allocated to a float there dude.

Try changing

  float move = (Input.GetAxis("Horizontal") > 0); 

to

  float move = Mathf.Clamp01(Input.GetAxis("Horizontal")); 

That should make your script work.

-Ell