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

What's wrong with my Server Messages Script?

I have a server messages script that seems to not be working properly. I want everybody in the server to see it, even myself.

This is what I have:

game.Players.PlayerAdded:connect(function(player)
	game:GetService("StarterGui"):SetCore("MakeSystemChatMessage", {
		Text = "[Server]"..player.." has joined";
		Color = Color3.new(255/255, 0/255, 0/255);
		Font = Enum.Font.Arial;
		FontSize = Enum.FontSize.Size24;
	})
end)

It has worked before, but ever since the recent ROBLOX update, it hasn't worked. It shows no errors whatsoever. It is a LocalScript under StarterGui.

6 comments

0

Local Scripts are Local. Do you have Filtering Enabled on? If so, this is your problem. Try using a regular script. I'm not sure if Regular scripts will work, but if they don't you're going to have to use Remote Events.

0

No, I do not have Filtering Enabled on. I'm not for sure if I need to add local Players = game:GetService('Players')

0

No, that shouldn't matter

0

Ah, alright. I've tried Regular Scripts before and it did not work. It's supposed to appear as its own server chat as if the server is chatting itself.

0

When testing this, you have someone else joining the game while you're in it right?

0

Yes. I've also tried doing the server thing in studio.

1 answer

✓ Accepted answer

ChatMakeSystemMessage not MakeSystemChatMessage

Also use player.Name or tostring(player) as you can't add userdatas to a string like that.

http://wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore

5 comments

0

I forgot to do the player.Name, and it still did not work.

0

Solid advice fam, solid advice.

0

O I think I know the problem, hold on I will update the answer

0

updated

0

I can't believe that I did that xD. Yeah, I could've figured it was a typo. Thanks!

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