Lord Buddha did not say not to worship gods. What Lord Buddha did say was not to become unconditional followers/worshipers of gods by neglecting the
Triple Gems - The Buddha, The Dhamma and The Sangha.
According to Buddhism, a person who engages in righteous work and prevents from sinful acts might eventually become a god in his/her next life or lives because of his/her achieved merits. Therefore, any god deserves our respect.
For example, no matter our religious beliefs, we bow/respect/worship the King of the country. Because the king is a leader; a powerful person. He is indeed lucky and luxurious. Likewise, we must respect all gods because they are in a far more powerful, meritorious and higher place than any of us combined.
Specifically in Hindu religion, there are many gods with many names. I don't know much about them but that's their belief. It is okay to worship them. As a Buddhist, what's not okay is to abandon the
Triple Gems and blindly going on worshiping gods.
For your knowledge, I also added some extra information below too.
According to Buddhism, every single person who still travels though this tough sea of
- Had been
- Still being
- Will be
a god for numerous times until he/she attains
Nibbana. Anyone who engages in righteous work and prevents from sinful acts might eventually become a god because of his/her achieved merits. But when those merits fades after a long time, then that god will become another living being again. (may be another god, human, animal or a being in hell).
In order to become successful in life, Lord Buddha said "Give respect for those who deserves respect." You can read
Singalowada Sutra to get more information about how to show respect and uphold the necessary responsibilities to 6 specific parties. Those 6 specific parties are mentioned as 6 directions and you have to respect/worship/oblige to them. They are,
- Parents - represented by EAST direction
- Teachers - represented by SOUTH direction
- Spouse - represented by WEST direction
- Friends - represented by NORTH direction
- Monks - represented by UP direction
- Servants - represented by DOWN direction
To be a good person is to respect all 6 directions everyday and to make sure that our responsibilities towards them are always met. So that you will get their respect and obligations back.
I hope you got your answer. Wish you well.