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

How do I make a map script?

I made a game that has two maps. I made two script for it that functions for when the race starts, and spawning there and other stuff for both of them. I then made another script that makes one scripts enables and other disables. This is the script:

script1 = game.ServerScriptService.Map1
script2 = game.ServerScriptService.Map2

while true do
    script1.Disabled = true
    wait()
    script1.Disabled = false
end

while true do
    script2.Disabled = true
    wait()
    script2.Enabled = false
end

I want to do this where the first map script will be enabled and then we do the race, and after the race we get spawned back in the lobby and then that first script gets disabled and the other one enabled for map 2 and then after that race, it does the same. But it didn't work.

Please help me and I hope you understand this. Because I am having problems here and plus I keep getting a downvote, so please understand what I am trying to say. All I know is that I am stupid :D

1 answer

script1 = game.ServerScriptService.Map1 script2 = game.ServerScriptService.Map2

while true do script1.Parent = game.Workspace wait(10) script1.Parent = game.ServerScriptService wait(1) script2.Parent = game.Workspace wait(10) script2.Parent = game.ServerScriptService end

1 comment

0

It only worked for map2 the whole time and not map1. I want both to work.

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