PlantsVSZombie Plant Placing

Godot Version

4.5.1

Question

So i want to be able to place other scenes onto specific points that a raycast3d looks at I have the hotbar graphic but it dosnt do anything currently.

And i have a script here for inventory slots but dont really know where to go from here.

I have the raycast able to detect the points I want in the level already.

So basically I need help learning how to make a hotbar I can scroll through that will then spawn whatever one im currently on when i click on a specific point probably with a raycast(get collision point) (Any help is appreciated)

Nevermind i got it by basically looking up a minecraft hotbar video and this short!

https://youtube.com/shorts/D-Co31wBxt8?si=PPmc1HuRbL7R8HPW