Random Hex Code

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Status
Not open for further replies.

_iz_

New Member
Jan 8, 2021
5
0
1
19
Canada
www.cloudcommunity.me
So I've been making a new server that includes levels as a statistic. I'm planning to have it display as a prefix in chat. I obviously know how to do that, but I want to put a twist on it:

I want the color of the level in the prefix to be hex codes according to what level is displayed. I've tried using SIN and COS functions to randomize the R G and B values to output a hex, but I had no luck. I was wondering if anyone has a script that does something like this or knows how to make one. It's a little advanced, but I'm hoping someone knows how!

Thanks to everyone in advance!
 
Status
Not open for further replies.