Identifier "Identifier "Expected end of statement after expression, found ":" instead.

Godot Version

Godot 4.4.1

Code

if Input.is_action_pressed(“shoot”):
if !gun_anim.is_playing():
gun_anime.play(“shoot”):

Question

I’m trying to make the gun shoot whenever i click the right mouse button but i cant make it work for some reason all i get is a error, can anyone help me? I’m new to all of this so please bare with me.

Try removing the “:” after your last line. This is what will be indicating the error.