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 })
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!
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?"