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

ChatMakeSystemMessage does not work in server only on studio?

Asked by 6 years ago
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

Log in to vote
0
Answered by
cabbler 1942 Moderation Voter
6 years ago

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.

Ad
Log in to vote
0
Answered by 6 years ago

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
0
Oh yeah, and it MUST BE A LOCAL SCRIPT INSIDE OF THE STARTERPLAYERSCRIPTS INSIDE THE STARTERPLAYER FOLDER. sesamert16 31 — 6y
0
Oh, thanks! CrazyTwinkle -1 — 6y

Answer this question