View difference between Paste ID: DUqmUDbY and kUkxU94w
SHOW: | | - or go back to the newest paste.
1
print ' Script executing. '
2
storage = game.ServerStorage:GetChildren()
3
 
4
function choose()   
5
print'Succesfully read function.'      
6-
    local chosenmap = math.random(1,#storage) --Make sure there is actually stuff for it to find.
6+
    local chosenmap = storage[math.random(1,#storage)] --Make sure there is actually stuff for it to find.
7
                        print(chosenmap.Name)
8
                        chosenmap:Clone().Parent=workspace
9
end
10
11
wait(1)
12
choose()