Advertisement
Greatgamer59

Rainbow Rank V2 RANK TUT

Dec 11th, 2018
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1.  
  2. local isAdmin = {["xboxcoder59_plays"] = true}
  3.  
  4. local rs = game:GetService("ReplicatedStorage")
  5. local remotefolder = rs:WaitForChild("RankFolder")
  6. local remote = remotefolder:WaitForChild("RankPlayerOnRespawn")
  7.  
  8. remote.OnServerEvent:connect(function(Player)
  9. if not Player then
  10. print("ERROR Can't fetch the player")
  11. end
  12. local pRank = Player:GetRoleInGroup(0)
  13. wait(1)
  14. local ui = script.Rank:Clone()
  15. ui.Parent = Player.Character
  16. ui.Adornee = Player.Character.Head
  17.  
  18. while not Player.Character.Humanoid do wait() end
  19. Player.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  20. local frame = ui.Frame
  21. local name = frame.Name1
  22. local role = frame.TextLabel
  23.  
  24. name.Text = Player.Name
  25. role.Text = pRank
  26.  
  27. if name.Text == "USERNAME" then -- Username here
  28. name.TextStrokeTransparency = 0
  29. name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
  30. role.TextStrokeTransparency = 0
  31. role.TextStrokeColor3 = Color3.new(0, 0, 0) -- Rank color
  32. role.Text = "PUTRANKNAMEHERE" -- Rank name
  33. elseif name.Text == "USERNAME" then -- Username here
  34. name.TextStrokeTransparency = 0
  35. name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
  36. role.TextStrokeTransparency = 0
  37. role.TextStrokeColor3 = Color3.new(0, 255, 0) -- Rank color
  38. role.Text = "PUTRANKNAMEHERE" -- Rank name here
  39. elseif name.Text == "USERNAME" then -- Username here
  40. name.TextStrokeTransparency = 0
  41. name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
  42. role.TextStrokeTransparency = 0
  43. role.TextStrokeColor3 = Color3.new(0, 255, 0) -- Rank color
  44. role.Text = "PUTRANKNAMEHERE" -- Rank name here
  45. elseif name.Text == "USERNAME" then -- Username here
  46. name.TextStrokeTransparency = 0
  47. name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
  48. role.TextStrokeTransparency = 0
  49. role.TextStrokeColor3 = Color3.new(0, 255, 0) -- Rank color
  50. role.Text = "PUTRANKNAMEHERE" -- Rank name here
  51. elseif name.Text == "USERNAME" then -- Username here
  52. name.TextStrokeTransparency = 0
  53. name.TextStrokeColor3 = Color3.new(0, 0, 0) -- Name color
  54. role.TextStrokeTransparency = 0
  55. role.TextStrokeColor3 = Color3.new(0, 255, 0) -- Rank color
  56. role.Text = "PUTRANKNAMEHERE" -- Rank name here
  57.  
  58. end
  59. -- Scripted by Xboxcoder59 plays
  60. -- EXAMPLE:
  61. --[[
  62. elseif name.Text == "xboxcoder59_plays" then -- Username here
  63. name.TextStrokeTransparency = 0
  64. name.TextStrokeColor3 = Color3.new(255, 0, 0) -- Name color
  65. role.TextStrokeTransparency = 0
  66. role.TextStrokeColor3 = Color3.new(255, 0, 0) -- Rank color
  67. role.Text = "Owner // Developer" -- Rank name here
  68. end
  69. --]]
  70.  
  71. if isAdmin[Player.Name] then
  72.  
  73. wait(2)
  74. while wait() do
  75. local rc = math.random(0,255)
  76. local gc = math.random(0,255)
  77. local bc = math.random(0,255)
  78. local r = rc / 255
  79. local g = gc / 255
  80. local b = bc / 255
  81. local c = Color3.new(r, g, b)
  82. for i = 0,1,0.03 do
  83. wait()
  84. Player.Character.Rank.Frame.Name1.TextColor3 = Player.Character.Rank.Frame.Name1.TextColor3:lerp(c,i)
  85. Player.Character.Rank.Frame.TextLabel.TextColor3 = Player.Character.Rank.Frame.Name1.TextColor3:lerp(c,i)
  86. end
  87. end
  88. end
  89. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement