How to make power system?

I need help with power system to transfer energy between parts like that:
i tried module script with energy check but it doesn’t work.

Inside the Part put an IntValue, then place the power .Value of the Part in it.
When you want to use or change the power value check the .Value and use it as necessary.