I'm trying to add a system message that says something when a user leaves or joins the game, but I'm using text chat service now, and it seems like there is a new solution to this, but I am unable to find out what it is. This is what my code looks like:
game.Players.PlayerAdded:Connect(function(plr)
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
Text = plr.Name.." joined the game.",
})
if (plr.UserId == 1274540012) then
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
Text = "[OWNER] "..plr.Name.." joined the game.",
Colour = Color3.fromRGB(0,215,255)
})
end
end)
game.Players.PlayerRemoving:Connect(function(plr)
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
Text = plr.Name.." left the game.",
})
if (plr.UserId == 1274540012) then
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
Text = "[OWNER] "..plr.Name.." left the game.",
Colour = Color3.fromRGB(0,215,255)
})
end
end)

2 comments
I hope this helps
That still doesn't work for text chat service, as that only works for the default chat. I added a solution since I figured it out myself.