So I am wanting to make a script that plays a random id from a table. the table name is "local ids"
I need this for a shop im making..
So I am wanting to make a script that plays a random id from a table. the table name is "local ids"
I need this for a shop im making..
local pre = {"268763467","261244793","142570249","165508381"} --Example songs
local whatpre = pre[math.random(1,#pre)]
music.SoundId =("http://www.roblox.com/asset/?id="..whatpre)
music:Play()
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Would I be able to replace "music" with script.Parent or would that not work?
It will work.