Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a system message In Chat?

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local FD = ReplicatedStorage.FD

FD.OnClientEvent:Connect(function()
	local brickColor = BrickColor.new("Lime green")
	game.StarterGui:SetCore("ChatMakeSystemMessage", {
		Text = Game.StarterGui.FD.Frame.Input
		Font = Enum.Font.FredokaOne;
		Color = brickColor.Color;
		FontSize = Enum.FontSize.Size96;
	})
end)

I am trying to make it so when i put something into the textbox and i click the button then it sends a system message in chat.

The script is stored as a local script in startergui.

2 answers

✓ Accepted answer

You forgot to put .Text in line 7. And use lowercase game otherwise it won’t work.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local FD = ReplicatedStorage.FD

FD.OnClientEvent:Connect(function()
    local brickColor = BrickColor.new("Lime green")
    game.StarterGui:SetCore("ChatMakeSystemMessage", {
        Text = game.Players.LocalPlayer.PlayerGui.FD.Frame.Input.Text
        Font = Enum.Font.FredokaOne;
        Color = brickColor.Color;
        FontSize = Enum.FontSize.Size96;
    })
end)

hey you! have you ever heard of enes? if you are in trouble, better call enes!

This discussion is preserved as it was. New answers, comments, and votes are closed.