Be open and direct
Be yourself (ofc)
Be playful, but not too playful
Be a good person it should work 99.9999% of the time
If it's SO clear they aren't showing interest, then back off.
(Disclaimer: These tips may or may not work, so if they don't, that just means they weren't the right one)