So, I made a script that gets a random member from an array. Its parent is a StringValue in workspace. I don't get any errors in the output. Can anyone help? Thanks for helping.
moves = {"move1"; "move2"; "move3"; "move4"; "move5"; "move6"}
function r(m)
return math.random(m)
end
s = r(#moves)
selected = moves[s]
print(selected)
script.Parent.Value = selected
Once again, thanks for helping. It is really appreciated.

2 comments
that work for me... the problem is not here!
This is the whole script.