Need Help on Overhead Rank Script

Hello, I’m Marc and I need help on making my Overhead Ranks Update as quick as possible once ranked someone. I am using a rainbow overhead rank for a hotel group but it updates slow as heck which is very ineffective considering I need to use it for ranking trainees and making sure they are ranked or not. This is the current script that I have right now:

local rs = game:GetService(“ReplicatedStorage”)
local remotefolder = rs:WaitForChild(“RankFolder”)
local remote = remotefolder:WaitForChild(“RankPlayerOnRespawn”)

local function CoolCols(block)
local i=0
while wait() do
i=math.fmod(i+1,255)
block.TextColor3 = Color3.fromHSV(i/255,1,1)
end
end

remote.OnServerEvent:connect(function(Player)
if not Player then
print(“an error occured fetching the player”)
end
local pRank = Player:GetRoleInGroup(5003094)
wait(1)
local ui = script.Rank:Clone()
ui.Parent = Player.Character
ui.Adornee = Player.Character.Head

while not Player.Character.Humanoid do wait() end
Player.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
local frame = ui.Frame
local name = frame.Name1
local role = frame.TextLabel

name.Text = Player.Name
role.Text = pRank

if name.Text == "" then
    CoolCols(name)
elseif name.Text == "" then
    CoolCols(name)
elseif name.Text == "" then
    CoolCols(name)
elseif name.Text == "" then
    CoolCols(name)
elseif name.Text == "" then 
    CoolCols(name)
elseif name.Text == "" then 
    CoolCols(name)
elseif name.Text == "" then 
    CoolCols(name)
elseif name.Text == "" then 
    CoolCols(name)
elseif name.Text == "" then 
    CoolCols(name)
    --name.TextStrokeTransparency = 0
    --name.TextStrokeColor3 = Color3.new(0, 0, 0)
    --role.TextStrokeTransparency = 0
    --role.TextStrokeColor3 = Color3.new(0, 0, 0)
    --role.Text = ""
end
end)

Any help would be awesome.

Thank you in advance.

okay so if i understand you correctly you want it so when you give someone a new role on your Roblox group you want it to update immediately in your game?

2 Likes

When I refresh them with admin commands, I want it to update quick. The one I have right now takes 2-3 minutes to update once ranked.

I think Roblox just has some delay processing that stuff. If reloading the character of the player and tp them to you doesn’t work then i think you just have to change their rank in-game with a GUI or something like that.

Ah, alright. Thank you for that.

1 Like