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

How do I make system messages using ServerScripts?

So, I am making a system where if a person does not have a license for my ScoopyProtect script it will put a message in chat each minute for advertising (Very D move I know) BUT its a modulescript. I just wanted to ask if its possible. OH and here's the script I did but it said it had to be a localscript which kind of sucks.

game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
Text = "This is a system message"; --The chat message
Color = Color3.fromRGB(0, 255, 255); --Chat message color, defaults to white
Font = Enum.Font.SourceSansBold; --Chat message font, defaults to SourceSansBold
TextSize = 18 --Text size, defaults to 18
})

2 comments

0

Can you detail more what do you need, please? How should the system work?

0

http://xyproblem.info You should use a remote for clients to make a system message

2 answers

✓ Accepted answer

Server:

game.ReplicatedStorage.Event:FireAllClients({
Text = "This is a system message"; --The chat message
Color = Color3.fromRGB(0, 255, 255); --Chat message color, defaults to white
Font = Enum.Font.SourceSansBold; --Chat message font, defaults to SourceSansBold
TextSize = 18 --Text size, defaults to 18
})

LocalScript:

game.ReplicatedStorage.Event.OnClientEvent:Connect(function(data)
	game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", data)
end

Make an event called Event in Replicated storage And done! Hope this helps!

EDIT: On serverside, use a script!

4 comments

0

in localscript it's supposed to be onclientevent btw

0

This is not what I'm saying

0

ok bro

0

Ill accept you anyway. I found a way using the Chat instance.new

As I said. I want it all serversided so it works with my modulescript. I don't want a Localscript as well as a Event. Did you not read the post and just post on my christian ROBLOX help?

"do I make system messages using ServerScripts?"

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