You could just simply use a table for that, which can hold multiple values (Or messages from your perspective)
You can also do math.random(), which will take a randomized number from the total amount given (Or a random message from our message table)
local Duration = 30
local ChatService = game:GetService("Chat")
local PartToReference = workspace:WaitForChild("PartNameHere")
local MessagesToSay = {
"Message 1",
"Message 2",
"Message 3",
"Potato"
}
while true do
local RandomMessage = MessagesToSay[math.random(#MessagesToSay)]
ChatService:Chat(PartToReference, RandomMessage, "Blue")
wait(Duration)
end
I decided to try this script, only it doesn’t work!
--In a LocalScript
local ChatService = game:GetService("Chat")
local PartToReference = workspace:WaitForChild("PartNameHere")
ChatService:Chat(PartToReference, "Follow ItsDontM!", "Gold")
wait(30)
ChatService:Chat(PartToReference, "Like and Follow the game!", "Gold")
wait(3 * 60)
ChatService:Chat(PartToReference, "Thanks Jackscarlett for the script! ", "Gold")