Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help fix this puzzling script?

Asked by 10 years ago

So here is the script

songs = game.ServerStorage:GetChildren()--line 10
Song1 = songs[math.random(1,#songs)]-- line 11
Song1.Parent=game.Workspace -- line 12

What puzzles me is that it stack ends on line ll saying Workspace.Script:11: bad argument #2 to 'random' (interval

Answer this question