Ultra Customizer Guides
  • 👋Welcome
  • ❔Basics
    • Getting started
    • Elements details
    • Manage folders
      • Global management
      • Import export
  • 💻GUI's
    • How to open your GUI
    • Custom buttons
      • Custom button icon
      • Player head (Opening the GUI)
    • Button Lores
      • Players placeholders
    • Unlockable Buttons
  • ⚙️Simple systems
  • Creating a mute chat script
    • Creating the /mutechat command
    • Creating the /unmutechat command
    • Creating the script
  • Text message replacement
    • Creating the script
  • ---------------------------
    • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. Text message replacement

Creating the script

Here we are going to create are base for our script

PreviousText message replacementNextChangelog

Last updated 3 years ago

Was this helpful?

What script are we going to use?

For this script to work we are going to create a script for "Player Chat Message" I am going to name it: "Replace [item]" to keep our Ultra Customizer system clean.

First we are going to get the item in his Main Hand.

Now we need to convert our item to a string so we can use it in our chat.

The next part is very important and needs to be followed closely

Now we are going to add a "Replace String (Ignore Case)" Our first input will be "Player Chat Message" The second input will be "[item]" And our third input will be "Item To String"

Now we are done! When we type [item] alone or in a sentience it will be replaced with the item in your hand. (If you have nothing in your hand you will get "AIR")