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

how to get a random map out of this?

Asked by
Paldi 109
8 years ago

im getting a bit confused on how i can make this script get a random map from a group in game.Lighting.Maps


local maps = game.Lighting.Maps:GetChildren() while true do for i =1,#maps do maps[i].math.random(3) -- "3" would be the amount of maps in the group wait(1) -- just to make sure it wont crash.. print (maps[i].Name) -- this would just be to see if it works end end

Answer this question