How to write code to make a donation message in chat when someone donates to your roblox game?

I want to write a script that makes the server announce in chat when someone has donated to my game.

I haven’t scripted in months so I don’t remember how I could achieve this so a little help would be nice so I can figure this out.

I’ve tried searching online for tutorials but nobody has made anything that explains how to get this done.

1 Like
game.StarterGui:SetCore( "ChatMakeSystemMessage",  { Text = "[SYSTEM] Hello World", Color = Color3.fromRGB( 255,0,0 ), Font = Enum.Font.Arial, FontSize = Enum.FontSize.Size24 } )

It is a localscript.
If you want everybody to see it then you have to loop through every player and fire a remote event with the player variable

1 Like

@MadaraDeveloper Done. Chat Announce - Roblox Enjoy. If you want to change the message go into the script inside

In order to run this create a button and put a script inside with this
script.Parent.MouseButton1Click:Connect(function()

game.ReplicatedStorage.ChatButtonEvent:FireServer("Hello World")

end)

Change the Hello World to whatever you want and that will be the message.