Cannot call "Connect" on null value, Tween not working, Color rect is null?

Godot Version

Godot 4.6 Release

Question

I’ve put together a simple scene transition script and scene with the help of a tutorial, a black color rect, a tween and a func to switch the scenes, the scene is autoloaded and is called on in the main menu scene to switch scenes, but gives this error, ive noticed that the color rect is always a null scene but can’t for the love of god find out why or what I’m doing wrong.

Let me add

Even when i get rid of the connect function

The tween does nothing even though no error

And I’m not so sure if this is relavent, but i had had a similar issue previously where a tween just did nothing even though not a single error popped up, an issue i couldn’t find the reason for

It also similarly was being used for ui.

The scene this transition func is used in is a simple main menu scene, set as the main scene, a control node as the root and buttons and stuff.

IMG_20260207_204009_828

You have to autoload the .tscn file of your transition_effect scene. When using the .gd file, it will only create a node with that script, which doesn’t have the ColorRect as child node.

1 Like

Thank you so much!

I didn’t even know i had autoloaded the script :confused: