Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Cuz loleris is like the 10th person asking for it
- local colors = {
- Color3.new(253/255, 41/255, 67/255),
- Color3.new(1/255, 162/255, 255/255),
- Color3.new(2/255, 184/255, 87/255),
- BrickColor.new("Bright violet").Color,
- BrickColor.new("Bright orange").Color,
- BrickColor.new("Bright yellow").Color,
- BrickColor.new("Light reddish violet").Color,
- BrickColor.new("Brick yellow").Color,
- }
- local function GetChatColor(pName) local value = 0
- for i=1,#pName do
- local cValue = pName:sub(i,i):byte()
- local reverseIndex = #pName - i + 1
- reverseIndex = reverseIndex - #pName%2
- if reverseIndex%4 >= 2 then
- cValue = -cValue
- end value = value + cValue
- end return colors[value%#colors)+1]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement