Need help with this script

I want to make a thing which has your name your rank ina group and if you’re an HR you get like a specific title above that. I really need help, I tried to make this script:image But it doesn’t work.

That’s because you forgot to put assign an if statement in the fifth line here is how you should do it for the fifth line:

if player:GetRankInGroup(id) >= rankid then

not

 player:GetRankInGroup(id) >= rankid then

Oh and by the way you never created a variable called “rankid” so that is also another error

This is what the new script says.

Also, how would I be able to make this?

Yes but you need to create a variable called rankid and also remove that “not” thing in line 7 and remove the player:GetRankInGroup() thing in line 9