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

How would I go about making a server notification when someone earns a badge?

Asked by 2 years ago

When someone would earn a badge, a chat message will appear for everyone saying [player] earned [badge name] I know I would use setcore, chatmakesystemmessage But what else should I do to make it appear on everyone's chat, not only for the person who earned the badge?

1 answer

Log in to vote
0
Answered by
A_Mp5 222 Moderation Voter
2 years ago

First of all, when the badge is given you will need to fire this from a server script. Edit as you wish, I suggest putting it into a function, so you can see who the player was.

bc = BrickColor.new("New Yeller")
game.StarterGui:SetCore("ChatMakeSystemMessage", {
    Text = "Player has earned a badge.";
    Font = Enum.Font.Cartoon;
    Color = bc.Color;
    FontSize = Enum.FontSize.Size96;    
})
Ad

Answer this question