Jump to content

Rainbow Chat


Pryzmm

Recommended Posts

I found this script in script releases, and i wanted to use it. One thing i had in mind that i don't know how do to is making chat rainbow, like in cherryPR.

options:
    c: {chatcolor.%player%}
 
on join:
    if {chatcolor.%player%} is not set:
        set {chatcolor.%player%} to "&f"
       
on chat:
    cancel event
    broadcast "%player's display name% &e»&r %{chatcolor.%player%}%%message%"
   
command /color [<text>]:
    aliases: /c
    trigger:
        if arg-1 is not set:
            send "&8&l[&6&lColor&8&l] &6/color &0Black, &1Blue, &2DarkGreen, &3DarkAqua, &4DarkRed, &5DarkPurple, &6Gold, &7Gray, &8DarkGray, &9Blue, &aGreen, &bAqua, &cRed, &dLightPurple, &eYellow, &fWhite, &lBold&r, &oItalic&r, &nUnderline&r, &mStrike&r, &kMagic &r(Magic)" to player
            stop
        set {_check} to "%{@c}%"
        set {@c} to "" if arg-1 is "Clear", "Reset" or "Default"
        set {@c} to "&0" if arg-1 is "Black" or "&0"
        set {@c} to "&1" if arg-1 is "DarkBlue" or "&1"
        set {@c} to "&2" if arg-1 is "DarkGreen" or "&2"
        set {@c} to "&3" if arg-1 is "DarkAqua" or "&3"
        set {@c} to "&4" if arg-1 is "DarkRed" or "&4"
        set {@c} to "&5" if arg-1 is "DarkPurple" or "&5"
        set {@c} to "&6" if arg-1 is "Gold" or "&6"
        set {@c} to "&7" if arg-1 is "Gray" or "&7"
        set {@c} to "&8" if arg-1 is "DarkGray" or "&8"
        set {@c} to "&9" if arg-1 is "Blue" or "&9"
        set {@c} to "&a" if arg-1 is "Green" or "&a"
        set {@c} to "&b" if arg-1 is "Aqua" or "&b"
        set {@c} to "&c" if arg-1 is "Red" or "&c"
        set {@c} to "&d" if arg-1 is "LightPurple" or "&d"
        set {@c} to "&e" if arg-1 is "Yellow" or "&e"
        set {@c} to "&f" if arg-1 is "White" or "&f"
        set {@c} to "%{@c}%&l" if arg-1 is "Bold" or "&b"
        set {@c} to "%{@c}%&o" if arg-1 is "Italics" or "&o"
        set {@c} to "%{@c}%&n" if arg-1 is "Underline" or "&n"
        set {@c} to "%{@c}%&m" if arg-1 is "Strike" or "&m"
        set {@c} to "%{@c}%&k" if arg-1 is "Magic" or "&k"
        replace all "&l" in {@c} with "" if {@c} contains "&l&l"
        replace all "&o" in {@c} with "" if {@c} contains "&o&o"
        replace all "&n" in {@c} with "" if {@c} contains "&n&n"
        replace all "&m" in {@c} with "" if {@c} contains "&m&m"
        replace all "&k" in {@c} with "" if {@c} contains "&k&k"
        send "&8&l[&6&lColor&8&l] &cError. Invalid color!" to player if {_check} is "%{@c}%"
        send "&8&l[&6&lColor&8&l] &6Color succesfully changed!" to player if {_check} is not "%{@c}%"

Any assistance will be helpful

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

and this is for plain skript? no addons or anything (like Skrayfall or Skquery)

 

EDIT: nevermind i got it 😄

Edited by Agentgamer100YT
problem solved

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...