Prints same message every time

Hey there, I am making a timed notification script and it’s printing the exact same message every 20 seconds.

local Messages = {
	"Enjoying the game? Leave a like and favourite our game!",
	"Want a cool perk? Check out our gamepasses in the 'Store' section!",
	"Did you know this game was scripted by datastoress?",
	"Did you know this game was built by Ourleonbarlow?"	
local RandomMessage = Messages[math.random(1, #Messages)]

It prints the same message everytime.

Because you set the random value to a variable.

Messages[math.random(1, #Messages)]


1 Like