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

Is it possible to add more than one message in the server chat?

Asked by
yoshi8080 445 Moderation Voter
8 years ago

I'm just wondering is there any way to add more than one message into the chat.

1 answer

Log in to vote
1
Answered by 8 years ago

Just do the chat twice:

-- This has to be a LocalScript

function chat(text)
    game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
        Text = text;
        Color = Color3.new(255,255,255);
        StrokeColor = Color3.new(0,0,0);
        Font = Enum.Font.SourceSansItalic
    })
end

for i =1,2 do
    if i == 1 then
        chat("Text1")
    elseif i == 2 then
        chat("Text2")
    end
end
0
Is there anyway to edit that text? yoshi8080 445 — 8y
0
That for loop is the same thing as chat("Text1") chat("Text2") aquathorn321 858 — 8y
0
Yup. Edit the text? Yes, there is a way to edit the text... chat("TEXT_HERE") TheDeadlyPanther 2460 — 8y
0
So text1 is what the text is? yoshi8080 445 — 8y
0
Yes. TheDeadlyPanther 2460 — 8y
Ad

Answer this question