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

Why is this script not working?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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

Log in to vote
1
Answered by
dyler3 1510 Moderation Voter
8 years ago

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.

0
Thanks so much for your help! Supergamerboy1995 129 — 8y
0
No problem, happy I could help! dyler3 1510 — 8y
Ad

Answer this question