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

How do I make a map script?

Asked by 9 years ago

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

Log in to vote
-2
Answered by 9 years ago

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

0
It only worked for map2 the whole time and not map1. I want both to work. User#5689 -1 — 9y
Ad

Answer this question