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
endremote.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.Headwhile 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.