Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

ChatMakeSystemMessage does not work in server only on studio?

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.

2 answers

✓ Accepted answer

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

2 comments

0

Oh yeah, and it MUST BE A LOCAL SCRIPT INSIDE OF THE STARTERPLAYERSCRIPTS INSIDE THE STARTERPLAYER FOLDER.

0

Oh, thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.