Every time I run my game, I want it to pick a random number.. But it picks the exact same number every time. How do I fix this?
math.randomseed(tick())
local replicatedStorage = game:GetService("ReplicatedStorage")
local tip = replicatedStorage:WaitForChild("TipValue")
local n
while true do
n = math.random(1, 5)
if n == 1 then
tip.Value = "Tip: Never stop moving!"
end
if n == 2 then
tip.Value = "Tip: Don't let bombs corner you!"
end
a
if n == 3 then
tip.Value = "Tip: Stay as far away from bombs as possible!"
end
if n == 4 then
tip.Value = "Tip: Don't get discouraged, you can do it!"
end
if n == 5 then
tip.Value = "Tip: Chaos mode is hard, keep trying!"
end
wait(30)
end

3 comments
remove that 'a' on line 18, make sure the script is enabled too. I suggest making your loop last 1 second each wait so you can see this change faster and be sure it is random. Perhaps try making local n go inside of your while true loop.
If my suggestion works, please add [answered] to your title.
Ok, I did what you said, it picks random numbers each time it loads, but the first number that loads when I test the game is ALWAYS the same.