• Godot Help
  • Error with Tweens but the code works anyways

func roll():
	rolling = !roll_timer.is_stopped()
	var tween = get_tree().create_tween()
	if Input.is_action_just_pressed("roll") && roll_cooldown.get_time_left() == 0:
		roll_timer.start(roll_time)
		roll_cooldown.start(roll_time * 5)
		tween.tween_property($CollisionShape2D, "rotation_degrees", 360, 0.5)
		$CollisionShape2D.rotation_degrees = 0

The error is step:<Tween#-9223372007695973158>: started with no Tweeners
Here's the function where the problem is, any idea what's happening?

If that if statement is not true, then you will create a tween object but not use it. You should move the tween creation to inside the if statement. You only want to create a tween object if you're going to use it.