I'm making a custom chat system message thing, and the the [Playername]: Part of the script pops up, but the text that is supposed to pop up isn't, help? https://i.imgur.com/XpZreEB.png
I'm not exactly sure what you were going for with this...
local chat = 'This is what will pop up' local PlayerName = game.Players.LocalPlayer.Name game.StarterGui:SetCore('ChatMakeSystemMessage', { Text = '[' .. PlayerName .. ']' .. chat })
I'm not sure how you have your gui's set or anything, that's going to have to be on you... But what I have above does work while in a localscript somewhere within the player.
You're going to have to be a little more detailed if you need some more help. Have any questions? Feel free to comment.
EDITED:
local StarterGui = game:GetService('StarterGui') local player = game.Players.LocalPlayer local frame = script.Parent.Parent local ChatSayer = script.Parent local thingtoSay = frame.ChatText ChatSayer.MouseButton1Click:Connect(function() StarterGui:SetCore('ChatMakeSystemMessage', { Text = '[' .. player.Name .. '] ' .. thingtoSay.Text } ) end)
What I have here is it is setting it every time that you hit that 'ChatSayer' button. if this isn't what you were wanting then just take out the 'MouseButton1Click function and just set the text to whatever you'd like it to be...
Remember this is going to be local.. if you want it to work on the server you MUST filter it before it is actually sent
But I hope this helps