Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I create like a rank nametag? Like at the bottom of your name it shows the rank?

Asked by 6 years ago

I am curious, how do you do that, like when you play it shows your name and at the bottom it shows your current rank above your head, like Solanas and VeIIa Hotels.

0
wait, you want to check the rank from a group or ? .. xDJALCHATRAZx 0 — 6y
0
Yeah, maybe from the group gbtandoc 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

This is not a request website. We are a website for requesting help with scripts you have already made. Keep this in mind for future questions.

However, some good things you can look at to achieve your solution is to look at player:GetRankInGroup(), player:GetRoleInGroup() and player:IsInGroup().

An example of this would be:

local player = game.Players.LocalPlayer
local groupID = 2

-- Simple usage of GetRankInGroup()
-- This is used for checking if a user has a certain role ID.
-- 255 is the owner ID.
-- 0 is a guest. (Not in the group)
if player:GetRankInGroup(groupID) == 255 then
    print(player.Name.." is the owner of the group.")
end

-- Simple usage of GetRoleInGroup()
print("Player is ranked as "..player:GetRoleInGroup(groupID))

-- Simple usage of IsInGroup()
if player:IsInGroup(groupID) then
    print("Player is in the group: "..groupID)
else
    print("Player is not in the group: "..groupID)
end

To achieve displaying name ranks, you will have to investigate Billboard Guis.

Hope this helped!

0
Thank You so much!! gbtandoc 0 — 6y
0
You're welcome! :) WelpNathan 307 — 6y
0
Hey man, thanks a lot ;) AswormeDorijan111 531 — 6y
Ad

Answer this question