#hi i need help rn, with a title system
1 messages · Page 1 of 1 (latest)
whats the error
When the script and everything doesn't work in the chat, I don't know why. I need someone to explain to me how to do it right.
send the code and error message
Erase all the anger, that's why I'm looking for someone to explain it to me from scratch
what is "erase all the anger"
that I get angry and delete everything
i don't really get why you're angry, but can you send the code
I don't have anything, but I can do it again so you can see
** You are now Level 1! **
sure, do it then
wait a minute
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local function setDisplayName()
local textChannel = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
local textSource = textChannel:GetUserTextSource(player.UserId)
if textSource and player.Name == "iamfonseca1" then
textSource.DisplayName = '<font color="#000000">[The Demon of the Black Sword]</font> ' .. player.DisplayName
end
end
task.delay(1, setDisplayName)
end)
did u write this urself
yes, because there is something wrong with the question?
or what happened
it looks like toolbox
bruh 
?
I have never been so offended.
😔
ok, now could you explain to me what's wrong?
@frosty sigil ?
@cloud oracle u can ?
was at breakfast
just a question, do you speak english or are you using google translate
google translate
lol
alr

yea
I already did it, but there is literally nothing, I don't know why it doesn't work
** You are now Level 2! **
put a print in the function setdisplayname
like print(player.Name)
you can do that? rn im not in the pc
I can't do it for you
u can do it once ur back on pc
alr
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local function setDisplayName()
local textChannel = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
local textSource = textChannel:GetUserTextSource(player.UserId)
if textSource and player.Name == "iamfonseca1" then
textSource.DisplayName = '<font color="#000000">[The Demon of the Black Sword]</font> ' .. player.DisplayName
end
end
task.delay(1, setDisplayName)
end)``` the function is formatted correctly which is good
i assume your not going to change your username ever but personally i'd change it to use a user id
so instead of player.Name == "iamfonseca1"
i'd use
player.UserId == "7901454795" [your user id]
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local function setDisplayName(plr,tag,id)
local textChannel = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
local textSource = textChannel:GetUserTextSource(player.UserId)
if textSource and player.UserId == id then
textSource.DisplayName = '<font color="#000000">' ..tag ..'</font>' .. player.DisplayName
end
end
Players.PlayerAdded:Connect(function(player)
task.delay(1, setDisplayName,player,'[The Demon of the Black Sword]',7901454795)
end)``` i would move it out of the function too if you want to add your friends or something like that
https://devforum.roblox.com/t/how-to-create-a-custom-chat-tag/735593 this would also be helpful in actually setting the chat ag
Hey everyone! In this tutorial, I will show you how to create a Custom Chat Tag. What I mean by this is, a player will have a custom chat tag whenever they type! There is a screenshot of what this tutorial will be covering or you could say what you will be making! Step 1 : Open a new baseplate or a existing game. (Am considering you know how ...
tag
skip steps 1,2, and 3
It doesn't work for me, I don't know why
replace the [0] with your id
7901454795
but personally
id learn the why behind it
so for this function
instead of textSource.DisplayName
use
print(tag)
lemme test it actually
any errors?
in this one there is an error
@empty nacelle
@empty nacelle see dm
uh
i cant text you
nothing