Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is this how i would load a map because it wont?

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

1 answer

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()

This discussion is preserved as it was. New answers, comments, and votes are closed.