Welcome to my game script not working

Hi, I am working on a script that welcomes you to the game when you join. Currently, there are no errors yet its not doing anything. Here is the script:

Make sure it is a local script, and placed somewhere that replicates to every player. (Startergui and StarterPlayerScripts are two good places to keep it)

I was doing a tutorial and the tutorial said to do that.

1 Like

It is a local script in StartPlayerScripts.

local Players = game:GetService(“Players”)

function onPlayerAdded(player)
game:GetService(“StarterGui”):SetCore(“ChatMakeSystemMessage”,{
Text = ("Welcome to my game, "… player.Name … “!”);
Color = Color3.new(255,0,0);
Font = Enum.Font.SourceSansBold;
FontSize = Enum.FontSize.Size18;
})
end

Make a local script in StarterGUI and insert that.

Capitalize the T in text and see if that fixes it.

This is a local script and it replicates to every client anyway, it wouldn’t make sense to wrap it in a playerAdded function.

It works, I tested it. (30chars)

Alright, that worked. Capitalizing the T worked. Thanks @C0lvy123. Also, additional thanks to @SecurityOfficer6.

That script would make it that whenever someone else joins it would send the player a message. It wouldn’t just send it right when the player joins.