How do you make anything for the hud, such as Shield Meter, Gun/Ammo portrait?

Is it possible to have a syncing door?

Is it possible to have a detach turret script?