We can create an obstacle which falls from the sky.
Create a new scene with Rigidbody3D as root
Add MeshInstance3D, CollisionShape3D and Timer as children
For the MeshInstance add a new BoxMesh
Add Material and change the Albedo
Select the CollisionShape3D
Match the dimensions of the MeshInstance
Set the Timer to Autostart
Set the collision layers and masks
Add a script to the Dropper node
Add references to the Timer and MeshInstance
Add a variable to track if it has been hit
Freeze physics so it doesn't move initially
Connect the timeout signal of the timer
Connect the body entered signal of the rigidbody
In the body entered function
If the body is the player
And the Dropper has not already been hit
Call the change color function
Create the change color function
Set material color to red
Override the current material
Now you can instance some droppers in the main obstacle course scene