[gd_scene load_steps=2 format=2] [sub_resource type="GDScript" id=1] script/source = "class Player: export var health = 100 export var speed = 10 export var UI: NodePath func take_damage(damage: float): health -= damage if health <= 0: die() func die(): pass " [node name="Spatial" type="Spatial"] script = SubResource( 1 )