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

Trying to make a system chat message but it keeps having an error. Can someone help me?

I am trying to make the roblox chat say 'Welcome to my game' but it keeps having an error

13:28:42.679 - Players.tjtorin.PlayerGui.LocalScript:2: ')' expected (to close '(' at line 1) near '=' Here is my code:

game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",(
	Text = "Welcome to my game!"
	Color = Color3.new(255/255,0/255,0/255)
	Font = Enum.Font.SourceSansLight
	FontSize = Enum.FontSize.Size32
))

1 answer

✓ Accepted answer

You are using parenthesis instead of brackets. On lines 1 and 6, change the inner parenthesis into brackets like so:

game.StarterGui:SetCore("ChatMakeSystemMessage", { --Bracket
	Text = "Welcome to my game!"; --Semicolons!!
	Color = Color3.new(255,0,0);
	Font = Enum.Font.SourceSansLight;
	FontSize = Enum.FontSize.Size32;
}) --Bracket

Hope that helps

3 comments

0

Now it says 14:08:28.673 - Players.tjtorin.PlayerGui.LocalScript:3: '}' expected (to close '{' at line 1) near 'Color'

0

Oops, I forgot the semicolons. Make sure to add semicolons after each line within the bracket. I updated the code above so you can see

0

You are using parenthesis instead of brackets. The script will not work.

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