So recently I've been trying new things in roblox scripting, and I have been working on this problem for days but I can't seem to find an answer. What I want to do is every 3 seconds, the script chooses a random string from the list and then changes the script's parent's Text property to it, but it doesn't seem to be working. Any ideas on this? Thanks.
Script:
local phrases = {"This should be changing!", "Have a nice time!", "Help used!", "Test", "Sample Text",}
while true do
script.Parent.Text = (phrases[Random:NextNumber])
wait(3)
end