2d caracter controller cant go left

im german and my problem is my caracter is normal when i jump or walk to the right side, but when i go left i teleport my into nothing

here my c# script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class script1 : MonoBehaviour {

public float maxSpeed = 4;
public float jumpForce = 550;
public Transform groundCheck;
public LayerMask WhatIsGround;
public bool LookingRight = true;

private Rigidbody2D rb2d;
private Animator anim;
private bool NewBool = false;
private bool jump = false;

// Use this for initialization
void Start () {
	rb2d = GetComponent<Rigidbody2D>();
	anim = GetComponent<Animator>();

// Update is called once per frame
void Update () {
	if (Input.GetButtonDown ("Jump") && NewBool)
		jump = true;

void FixedUpdate()
	float hor = Input.GetAxis("Horizontal");


	rb2d.velocity = new Vector2(hor * maxSpeed, rb2d.velocity.y);

	NewBool = Physics2D.OverlapCircle ( groundCheck.position, 0.15F, WhatIsGround);

	anim.SetBool("New Bool",NewBool);

	if ((hor > 0 && !LookingRight)||(hor < 0 && LookingRight))
		Flip ();

	if (jump) {
		rb2d.AddForce (new Vector2 (0, jumpForce));
		jump = false;
public void Flip()
	LookingRight = !LookingRight;
	Vector3 MyScale = transform.localScale;
	MyScale.x *= -1 ;
	transform.localScale = MyScale;


Maby do some looking left idk i suck at coding just seems right to look left.

Hope i helped lol

Hi, I already have some like this in the past.

On my case, the problem was on the camera.

When I flip my char, the camera also flip, and do this strange behavior.

To make sure, put your camera on the scene (or other thing…) and play.