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

I put this script in StarterPlayerScripts but I don't understand the error?

local PAGE = game.Players.PlayerAdded
local PlayerAge = PAGE.AccountAge
local PlayerName = PAGE.Name

game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "Welcome"..PlayerName.."Your account age is"..PlayerAge
Color = Color3.new(50,150,0)
Font = Enum.Font.ArialBold
FontSize = Enum.FontSize.Size32
})

14:33:22.653 - Players.net_h.PlayerScripts.LocalScript:7: Expected '}' (to close '{' at line 5), got 'Color' ?

1 answer

✓ Accepted answer

I believe the problem is that you forgot to add semi-colons:

local PAGE = game.Players.PlayerAdded
local PlayerAge = PAGE.AccountAge
local PlayerName = PAGE.Name

game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "Welcome"..PlayerName.."Your account age is"..PlayerAge;
Color = Color3.new(50,150,0);
Font = Enum.Font.ArialBold;
FontSize = Enum.FontSize.Size32;
})

1 comment

0

thank you!

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