Does it look like this?
If so it is an Asterina sp star, there are a few different species, some eat detritus and algae, some eat bacteria and some eat coral polyps.
IME, the stark white ones are pretty safe, the mottled looking ones like the one pictured are the
sps eaters.