game.StarterGui:SetCore("ChatMakeSystemMessage", { Text = hit.Parent.Name.." has unboxed green sparkles!"; Font = Enum.Font.Arial; Color = Color3.fromRGB(0, 255, 0); })
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!
bc = BrickColor.new ("Lily white") -- whatever color you want game.StarterGui:SetCore('ChatMakeSystemMessage', { Text = "your text here"; Font = Enum.Font.SourceSans; --whatever font you want Color = bc.Color; FontSize = Enum.FontSize.Size18; -- whatever size you want the font to be }) end