How do I fix this stupid bool error

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By KilgaDev

if vel.x < 0 :
Sprite.flip_h = true
elif vel.x > 0:
Sprite.flip_h = false

Thats my script the error says:
Script inherits from native type ‘KinematicBody2D’, so it can’t be instanced in object of type: ‘Sprite’’

:bust_in_silhouette: Reply From: kidscancode

That error tells you that if your script begins with extends KinematicBody2D, you can’t attach this script to a Sprite node.