1 | game.StarterGui:SetCore( "ChatMakeSystemMessage" , { |
2 | Text = hit.Parent.Name.. " has unboxed green sparkles!" ; |
3 | Font = Enum.Font.Arial; |
4 | Color = Color 3. fromRGB( 0 , 255 , 0 ); |
5 | } ) |
I have included the "hit" part in the script but that part is working perfectly, it's just the chat part.
I am making a mystery box that spawns, and it is in server storage. When it spawns it goes into workspace obviously lol.
But it doesn't work, every time I make a chat script it never shows up, only on roblox studio.
I am using a normal script, by the way.
Can somebody please help me because I keep trying to search how to fix it but even AlvinBlox's tutorial doesn't seem to work.
You are using a server script but StarterGui functions only work in LocalScripts. I assume you thought this would broadcast a message to everyone but no it only shows a message in a client.
This is a ChatMakeSystemMessage script that I have used in one of my games before and it worked just fine in both studio & the game. Hopefully it does the same for you!
1 | bc = BrickColor.new ( "Lily white" ) -- whatever color you want |
2 | game.StarterGui:SetCore( 'ChatMakeSystemMessage' , { |
3 | Text = "your text here" ; |
4 | Font = Enum.Font.SourceSans; --whatever font you want |
5 | Color = bc.Color; |
6 | FontSize = Enum.FontSize.Size 18 ; -- whatever size you want the font to be |
7 | } ) |
8 | end |