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

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

Asked by
tjtorin 172
7 years ago

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:

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

1 answer

Log in to vote
2
Answered by 7 years ago
Edited 7 years ago

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

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

Hope that helps

0
Now it says 14:08:28.673 - Players.tjtorin.PlayerGui.LocalScript:3: '}' expected (to close '{' at line 1) near 'Color' tjtorin 172 — 7y
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 dpark19285 375 — 7y
0
You are using parenthesis instead of brackets. The script will not work. NotFrindow 346 — 5y
Ad

Answer this question