I wanted to add player’s level near his name when chatting, like this:
Unfortunately I can’t figure how to do the following (note that I don’t want to add player to speaker / chat tags like on the image - I just want to print out a string before player’s message).
Here’s what I tried (ModuleScript in Chat > ChatModules Folder):
local function Run(ChatService)
local function ShowPlayerLevel(speakerName, message, channelName)
local player = game:GetService("Players"):FindFirstChild(speakerName)
if player then
end
return false
end
ChatService:RegisterProcessCommandsFunction("ShowPlayerLevel", ShowPlayerLevel)
end
return Run
I don’t have any idea about how can I add string before player’s message anyways.
Thanks for help.