Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local isAdmin = {["xboxcoder59_plays"] = true}
- local rs = game:GetService("ReplicatedStorage")
- local remotefolder = rs:WaitForChild("RankFolder")
- local remote = remotefolder:WaitForChild("RankPlayerOnRespawn")
- remote.OnServerEvent:connect(function(Player)
- if not Player then
- print("ERROR Can't fetch the player")
- end
- local pRank = Player:GetRoleInGroup(0)
- 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 == "USERNAME" then -- Username here
- name.TextStrokeTransparency = 0
- name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
- role.TextStrokeTransparency = 0
- role.TextStrokeColor3 = Color3.new(0, 0, 0) -- Rank color
- role.Text = "PUTRANKNAMEHERE" -- Rank name
- elseif name.Text == "USERNAME" then -- Username here
- name.TextStrokeTransparency = 0
- name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
- role.TextStrokeTransparency = 0
- role.TextStrokeColor3 = Color3.new(0, 255, 0) -- Rank color
- role.Text = "PUTRANKNAMEHERE" -- Rank name here
- elseif name.Text == "USERNAME" then -- Username here
- name.TextStrokeTransparency = 0
- name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
- role.TextStrokeTransparency = 0
- role.TextStrokeColor3 = Color3.new(0, 255, 0) -- Rank color
- role.Text = "PUTRANKNAMEHERE" -- Rank name here
- elseif name.Text == "USERNAME" then -- Username here
- name.TextStrokeTransparency = 0
- name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
- role.TextStrokeTransparency = 0
- role.TextStrokeColor3 = Color3.new(0, 255, 0) -- Rank color
- role.Text = "PUTRANKNAMEHERE" -- Rank name here
- elseif name.Text == "USERNAME" then -- Username here
- name.TextStrokeTransparency = 0
- name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
- role.TextStrokeTransparency = 0
- role.TextStrokeColor3 = Color3.new(0, 255, 0) -- Rank color
- role.Text = "PUTRANKNAMEHERE" -- Rank name here
- end
- -- Scripted by Xboxcoder59 plays
- -- EXAMPLE:
- --[[
- elseif name.Text == "xboxcoder59_plays" then -- Username here
- name.TextStrokeTransparency = 0
- name.TextStrokeColor3 = Color3.new(255, 0, 0) -- Name color
- role.TextStrokeTransparency = 0
- role.TextStrokeColor3 = Color3.new(255, 0, 0) -- Rank color
- role.Text = "Owner // Developer" -- Rank name here
- end
- --]]
- if isAdmin[Player.Name] then
- wait(2)
- while wait() do
- local rc = math.random(0,255)
- local gc = math.random(0,255)
- local bc = math.random(0,255)
- local r = rc / 255
- local g = gc / 255
- local b = bc / 255
- local c = Color3.new(r, g, b)
- for i = 0,1,0.03 do
- wait()
- Player.Character.Rank.Frame.Name1.TextColor3 = Player.Character.Rank.Frame.Name1.TextColor3:lerp(c,i)
- Player.Character.Rank.Frame.TextLabel.TextColor3 = Player.Character.Rank.Frame.Name1.TextColor3:lerp(c,i)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement