Nickname System

 
The Nickname System is a simple chat modification that allows users to change their chat names to whatever they like (as long as the Filtering System allows it). I created this for the intent of developers using it for their own usage like RPGs, games that have an anonymous feature, etc.

Setup

1. Open up Roblox Studio's Command Bar
    1a. If you do not see the command bar, go to "View" then press "Command Bar".
2. Copy this line of code below (til you reach to the "End of Script" comment).

local Rep = game:GetService("ReplicatedStorage")
local Chat = game:GetService("Chat")
local ScriptService = game:GetService("ServerScriptService")

local Origin = workspace["Nickname System"]
local FolderA = Origin:WaitForChild("Chat")
local FolderB = Origin:WaitForChild("ServerScriptService")

local NewObject = Instance.new("RemoteFunction", Rep)
NewObject.Name = "TagEvent"

for i, v in pairs(Chat:GetChildren()) do -- make sure you back anything up that you need from this
v:Destroy()
end

for i, v in pairs(FolderA:GetChildren()) do
v.Parent = Chat
end

for i, v in pairs(FolderB:GetChildren()) do
v.Parent = ScriptService
end

Origin["Read Me / Instructions"].Parent = workspace
workspace["Nickname System"]:Destroy()
warn("Successfully installed Nickname System. Have fun!")

3. Press "Enter" on your keyboard while still selecting the Command Bar.
    3a. Make sure you read the this script before running this command!
4. Congrats! You're done installing! It should work as intended.

TagEvent Functions

GetTagInfo
Gets information about a player (if their information exists within the Taggers table).
Parameter 'actual': The Player object.

UpdateTagInfo
Updates information about a player (if their information exists within the Taggers table).
Parameter 'enabled': A bool value that determines if the custom tag is enabled or not.
Parameter 'name': A string value that determines the nickname of the user.

Modifying Asset

When you install this system, there will be modified / new pieces of content within the "Chat" Service. These pieces of modified / additional content include:
  • UpdateNickname (new module)
  • DefaultChatMessage
  • ChatCommandsTeller
UpdateNickname is a new module that's part of the Nickname System. You can add more valid commands within the "CommandLine" table. You can also modify the functions if you want to. 

DefaultChatMessage has been given a few additional lines of code. The lines of code you're looking for is Lines 30 - 38. There you can add additional stuff or changes to the lines of code. 

ChatCommandsTeller only has two lines of code that have been changed. These lines are 36 and 54. If you want to remove my credit, just simply add a comment (aka --) to the front of the line and remove that same piece of code from Line 55.

The system also includes a script that acts as the logic for changing the nickname of the player. DO NOT CHANGE ANY PIECE OF CODE WITHIN THAT SCRIPT UNLESS YOU KNOW WHAT YOU'RE DOING. If you accidentally screw up something, you may have to reinstall the system.

Uninstalling The System

Uninstalling the system is easier than you may think. All you have to do is remove everything within the
Chat Service, ReplicatedStorage Service, and the ServerScriptService that does not comply to anything you've
made or included.

External Links

Comments

Popular posts from this blog

MM..TURRETS (Kiseki Development Update) [02/25/19]

Releasing Kiseki CTF's Source Code