Is there something wrong with my System message script?

I thought I did everything correctly, but something appears to be wrong. Nothing in output.

local function send(msg)

game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = tips;
Color = Color3.fromRGB(102, 0, 255);
Font = Enum.Font.GothamBlack
})

end

local tips = {
“Remember to join our group and Discord!”,
“You can view scheduled flights in the AA Flight Planner.”,
“Remember to abide by the rules!”,
“If you’re looking for a job position, join our group!”
}

while true do
wait(math.random(200))
send(tips[math.random(1, #tips)])
end

1 Like

I think you meant…

Text = msg;
2 Likes

Still doesn’t seem to work.

30chars

Change the wait(math.random(200)) to something like 1, to see if the actual message shows up, without waiting up to a maximum of 200 seconds…

1 Like

Still doesnt work. Is the localscript supposed to be in StarterPlayerScripts?

It looks like you could be using unrecognized quotation marks in your array—try replacing it with this:

local tips = {
	"Remember to join our group and Discord!",
	"You can view scheduled flights in the AA Flight Planner.",
	"Remember to abide by the rules!",
	"If you’re looking for a job position, join our group!"
}

This code can only run on the client @Araknala.

1 Like

Worked, thanks!

30charssssssss