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

How do I make system messages using ServerScripts?

Asked by
Lakodex 711 Moderation Voter
5 years ago

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
})
0
Can you detail more what do you need, please? How should the system work? Time_URSS 146 — 5y
0
http://xyproblem.info You should use a remote for clients to make a system message hiimgoodpack 2009 — 5y

2 answers

Log in to vote
1
Answered by
haba_nero 386 Moderation Voter
5 years ago
Edited by DeceptiveCaster 5 years ago

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!

0
in localscript it's supposed to be onclientevent btw bluzorro 417 — 5y
0
This is not what I'm saying Lakodex 711 — 5y
0
ok bro haba_nero 386 — 5y
0
Ill accept you anyway. I found a way using the Chat instance.new Lakodex 711 — 5y
Ad
Log in to vote
0
Answered by
Lakodex 711 Moderation Voter
5 years ago

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?"

Answer this question