So what Im trying to do is add hitpoints to this block https://imgur.com/a/7lfZH36 . I want a script which will create a health bar when I hover over it with my mouse (I have already scripted a part highlighter / selector thing) so it comes up with a green bar when I hover over it with my mouse (it gets selected) and when I click on it I want it to deplete the health bar. If you can I would also like help making it so that when the part's healthbar is empty (has no health left so 0hp) deletes itself.
I dont have any code to show you as I have absolutely nothing on this even after trying things from youtube and the internet that arent what Im after. If you need more information I will give it.

3 comments
Just to help anyone who is a bit confused, I want it to be similar to Treasure Hunt Simulator. A similar kind of health bar and damage things to it when you hit it with a tool and then deleting itself when it has 0 hp
If you are really new to scripting you should start by watching tutorials about the very basics, then move on with the specific aspects you require to make your desired script.
I have watched the basics, they just dont help me with what I need.