How can I make my Chat Welcomer work?

Hello Everyone,

I am making a theme park game with a friend and I want to have a Chat Welcomer but I don’t know how to make one. I already tried a script but it doesn’t work. Can someone help me?

script :

game.Players.PlayerAdded:Connect(function(player)

local welcomeMessage = "Welcome to WabBlox, " … player.Name … “!”

game:GetService(“Chat”):Chat(player.Character.Head, welcomeMessage)

end)

1 Like

Are you using the new textchatservice? it also could be the character head hasn’t loaded yet, use a characteradded connection or yield until all parts have loaded.