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

How to make this script enable on one of them and then another one?

Asked by 9 years ago

I made a script for maps. What I did was duplicating the script, but made it into a different track spawn. This is the script I am trying to make for two maps. I am trying to make it for when the first map is done, you go to the lobby wait 10 seconds and then to a different map. This is the script I made:

local map1Script = game.Workspace.MapHolder.Map1Beginner.Map1
local map2Script = game.Workspace.MapHolder.Map2Turning.Map2 

function map1()
    map1Script.Enabled = true
    wait()
    map1Script.Enabled = false
end

function map2()
    map2Script.Enabled = true
    wait()
    map2Script.Enabled = false
end

If you don't understand please PM me and I will maybe uncopy lock it and let you check it out. :D

Answer this question