How do i get the numerical position of tools (equipped or not)

basically, im trying to make a script that can tell what the position of a tool in the players hotbar, whether its equipped or not, is there a way to do that?

2 Likes

you can just check the player’s Backpack and Character for the tool then loop through whatever list you’re using for the hotbar ui once you find the tool just grab its index. that’s basically your slot number

yes but how do i loop trough the list? i use roblox’s hotbar ui by the way