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

Why is this script not working?

game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage"),{
Text = "Welcome to my game!";
Color = Color3.new(0,1,1);
Font = Enum.Font.SourceSans;
FontSize = Enum.FontSize.Size24;
})

This is the script to make a server message come up in the chat, and it doesn't work.

1 answer

✓ Accepted answer

The only mistake you made was simply putting an extra parenthesis. You simply need to take out the closing parenthesis at the end of line 1, and your code should work. It will look like this:

game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
	Text = "Welcome to my game!";
	Color = Color3.new(0,1,1);
	Font = Enum.Font.SourceSans;
	FontSize = Enum.FontSize.Size24;
})

Also, make sure you're using a Localscript, and it's a descendant of the player. That means, either put it in the StarterGui or the StarterPack, then it should work!


Anyways, I hope this helps. If you're still having problems, or have any further questions, please leave a comment below, and I'll see what I can do.

2 comments

0

Thanks so much for your help!

0

No problem, happy I could help!

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