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

What's wrong with my Server Messages Script?

Asked by 8 years ago

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.

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. User#11440 120 — 8y
0
No, I do not have Filtering Enabled on. I'm not for sure if I need to add local Players = game:GetService('Players') Rallient 40 — 8y
0
No, that shouldn't matter User#11440 120 — 8y
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. Rallient 40 — 8y
View all comments (2 more)
0
When testing this, you have someone else joining the game while you're in it right? M39a9am3R 3210 — 8y
0
Yes. I've also tried doing the server thing in studio. Rallient 40 — 8y

1 answer

Log in to vote
1
Answered by 8 years ago
Edited 8 years ago

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

0
I forgot to do the player.Name, and it still did not work. Rallient 40 — 8y
0
Solid advice fam, solid advice. Tradesmark 65 — 8y
0
O I think I know the problem, hold on I will update the answer Sceleratis 65 — 8y
0
updated Sceleratis 65 — 8y
0
I can't believe that I did that xD. Yeah, I could've figured it was a typo. Thanks! Rallient 40 — 8y
Ad

Answer this question