Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ** Rainbow Rank **
- Update V3
- + Added a better admin system
- + Added a better way of configuring stuff
- Created by XboxCoder59
- --]]
- -- ** Gamepass Edition **
- --//\\ Config //\\
- local Admins = {
- "ROBLOX"; -- Username example
- 1; -- User ID example
- }
- local Gamepassid = 0 -- your gamepass id
- local GroupId = 0 -- Your group ID
- local Speed = 0 -- How fast you want it to change color
- --//\\ Stuff below do not touch --//\\
- function IsWhitelisted(Player)
- for _,Whitelisted in pairs (Admins) do
- if type(Whitelisted) == "string" and string.lower(Whitelisted) == string.lower(Player.Name) then
- return true
- elseif type(Whitelisted) == "number" and Whitelisted == Player.UserId then
- return true
- end
- end
- return false
- end
- 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(GroupId)
- 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
- -- //\\ Custom Name //\\
- if name.Text == "ROBLOX" then -- Example
- name.TextStrokeTransparency = 0
- name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Text Color for username
- role.TextStrokeTransparency = 0
- role.TextStrokeColor3 = Color3.new(0, 0, 0) -- Text Color for rank
- role.Text = "ROBLOX | Admin" -- Example of what the text should be
- elseif name.Text == "EXAMPLE" then
- name.TextStrokeTransparency = 0
- name.TextStrokeColor3 = Color3.new(0, 0, 0)
- role.TextStrokeTransparency = 0
- role.TextStrokeColor3 = Color3.new(0, 255, 0)
- role.Text = "Example yee"
- end
- -- Scripted by Xboxcoder59 plays
- if IsWhitelisted(Player) or game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId,Gamepassid) 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(Speed)
- 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