So i have a table containing musicid:
local table = {"26616646","516165131","151656548"} -- they are not real (if they are real...idk) local Random = math.Random(1,#table) print(Random)
at first I thought that it will print the music id but it is printing 1, 2,3.... So how do i get the music id to be print out randomly ? Please help me as i am a very bad scripter... Thanks for reading :D
Change it to this:
local table = {"26616646","516165131","151656548"} local Random = math.Random(1,#table) local ChosenSong = table[Random] print(Random)