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.
1 | game:GetService( "StarterGui" ):SetCore( "ChatMakeSystemMessage" , { |
2 | Text = "This is a system message" ; --The chat message |
3 | Color = Color 3. fromRGB( 0 , 255 , 255 ); --Chat message color, defaults to white |
4 | Font = Enum.Font.SourceSansBold; --Chat message font, defaults to SourceSansBold |
5 | TextSize = 18 --Text size, defaults to 18 |
6 | } ) |
Server:
1 | game.ReplicatedStorage.Event:FireAllClients( { |
2 | Text = "This is a system message" ; --The chat message |
3 | Color = Color 3. fromRGB( 0 , 255 , 255 ); --Chat message color, defaults to white |
4 | Font = Enum.Font.SourceSansBold; --Chat message font, defaults to SourceSansBold |
5 | TextSize = 18 --Text size, defaults to 18 |
6 | } ) |
LocalScript:
1 | game.ReplicatedStorage.Event.OnClientEvent:Connect( function (data) |
2 | game:GetService( "StarterGui" ):SetCore( "ChatMakeSystemMessage" , data) |
3 | 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?"