(post deleted by author)
1 Like
Look into StarterGui:SetCore
's "ChatMakeSystemMessage"
parameter.
https://developer.roblox.com/en-us/api-reference/function/StarterGui/SetCore
You can use it to send chat messages every 20 seconds. Here is some example code:
local starterGui = game:GetService("StarterGui")
local tips = { --// store the tips
"Did you know dragons can breath fire? >:D",
"This is a tip O_O!",
"Hello World :D"
}
while true do --// infinite loop
local tip = tips[math.random(1, #tips)] --// pick a random tip
--// make the tip appear in chat
starterGui:SetCore("ChatMakeSystemMessage", {
Text = "[System]: Heres a cool tip: " .. tip, --// append a "[System]: Heres a cool tip" prefix
Color = Color3.new(1, 0, 0) --// Color red
})
wait(20) --// wait 20 seconds
end
2 Likes