So i am making a minigame game but the but the map wont load or the mini game. heres the code
while true do wait(30) local map = math.random(1,1) if map == 1 then game.ServerStorage.Map.Thefurture:Clone(game.Workspace) end local event = math.random(1,1) if event == 1 then game.ServerStorage.Events.Bombs:Clone(game.Workspace) end end
Try this:
while true do wait(30) local map = math.random(1,1) if map == 1 then game.ServerStorage.Map.Thefurture:Clone().Parent = game.Workspace end local event = math.random(1,1) if event == 1 then game.ServerStorage.Events.Bombs:Clone().Parent = game.Workspace end end
Clone simply returns a copied object, much like Instance.new()