#hi i need help rn, with a title system

1 messages · Page 1 of 1 (latest)

winter horizon
#

How do I make a title system so it shows up in the chat? pls i need help, in roblox.

winter horizon
# frosty sigil 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.

frosty sigil
winter horizon
winter horizon
frosty sigil
winter horizon
somber jungleBOT
#

studio** You are now Level 1! **studio

frosty sigil
winter horizon
winter horizon
# frosty sigil sure, do it then

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)

winter horizon
#

or what happened

frosty sigil
winter horizon
frosty sigil
winter horizon
#

😔

#

ok, now could you explain to me what's wrong?

#

@frosty sigil ?

winter horizon
#

@cloud oracle u can ?

frosty sigil
winter horizon
#

I need this for today, sorry.

frosty sigil
winter horizon
#

lol

frosty sigil
winter horizon
winter horizon
frosty sigil
#

so in the game the title doesnt show?

#

check the console for any bugs

winter horizon
somber jungleBOT
#

studio** You are now Level 2! **studio

frosty sigil
winter horizon
frosty sigil
#

u can do it once ur back on pc

winter horizon
empty nacelle
#
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

#

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

#

tag

#

skip steps 1,2, and 3

winter horizon
empty nacelle
#

replace the [0] with your id

#

7901454795

#

but personally

#

id learn the why behind it

winter horizon
#

I put it like this, it still doesn't work for me

#

@empty nacelle

empty nacelle
#

instead of textSource.DisplayName

#

use

#

print(tag)

#

lemme test it actually

empty nacelle
winter horizon
#

It would be like that, right?

empty nacelle
#

yea but eplace

#

player

#

with plr

#

in the

#

function

winter horizon
#

in this one there is an error

#

@empty nacelle

#

@empty nacelle see dm

#

uh

#

i cant text you

empty nacelle
#

theres

#

2 commas

winter horizon
#

hi

#

I was able to do it, thank you

cloud oracle
#

hell

winter horizon