Well, there is a server script that clones the main gui to the StarterGui. There is a localscript inside of that main gui which is the script we are talking about here.
local storage = script.Parent.Container.Storage
local chatBox = script.Parent.Container.ChatBox
local inputBox = script.Parent.Container.InputBox
replicatedStorage.ShowMessage.OnClientEvent:Connect(function(msgArgs)
local chatMessage = storage.ChatMessage:Clone()
chatMessage.Parent = chatBox
if msgArgs.messageSettings.showBadges == true then
if msgArgs.player.MembershipType == Enum.MembershipType.Premium then
chatMessage.Author.Name.Badge.Visible = true
end
else
chatMessage.Author.Name.Badge.Visible = false
end
if msgArgs.player.DisplayName == "" then
chatMessage.Author.Name.Name.Text = msgArgs.player.Name
else
chatMessage.Author.Name.Name.Text = msgArgs.player.DisplayName
end
chatMessage.Author.Profile.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. msgArgs.player.UserId .. "&width=420&height=420&format=png"
if msgArgs.messageSettings.showTime == true then
chatMessage.Author.Name.Time.Text = os.date("%I:%M %p")
else
chatMessage.Author.Name.Time.Visible = false
end
chatMessage.Message.Text.Text = msgArgs.messageText
chatMessage.Visible = true
end)
Hm, Understood. I looked through the scripts, and I do not find any errors. Sorry, but I do not know what is causing this issue. Try printing something in the scripts. You will eventually find the source of error. I would be happy to help you out on Roblox Studio, however, if you are not comfortable with it, someone else may be able to help you.
Ok, thanks for helping! I will look into this since this is the most important part of chat, seeing the actual messages. Maybe I will try a different way.
Alright, I apologize for not being able to assist you. I saw your other post in the “Cool Creations” category about the chat that looks very high quality like Discord. Scripting this original chat system is possible, and there is definitely a method to achieve this.