Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a system message In Chat?

Asked by 2 years ago
Edited 2 years ago
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

Log in to vote
0
Answered by 2 years ago

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)
Ad
Log in to vote
0
Answered by
enes223 327 Moderation Voter
2 years ago

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

Answer this question