tool script preload broken

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

this script prints “Null”. when the print is located inside of a _ready() it prints a packed scene and works correctly. why when I put it in _process() it breaks?

tool
extends Control


onready var res: = preload("res://addons/Clipboarder/Clip.tscn")


func _process(delta: float) -> void:
	print(res)