This is an intermission script i am sure its outdated.
while true do wait(5) --Waits 1 minute in between games m = Instance.new("Message") --Creates a new message local players = game.Players:GetChildren() -- String array where we store all the players local num = math.random(1,1) --Here, put (1,[total number of maps] if num == 1 then --Copy and paste this next section for each map, changing the number from 1 to 2, 3, and so on. m.Parent = game.Workspace --Puts our message in Workspace m.Text = "Choosing Map..." --Feel free to change these next couple of lines as needed wait(5) m.Text = "Game Number " ..num.. " Map Was Chosen" wait(3) m.Text = "[IDK]; Maker: [IDK]" wait(4) m.Text = "[Game Will StartShortly]" wait(3) m.Text = "This game lasts for [77]." wait(4) m.Text = "Get ready" wait(3) m.Parent = nil game.Lighting.Minigame1:clone().Parent = game.Workspace --Change the "Minigame1 to the name of your map (stored in Lighting) m.Text = "Map is Loading" wait(5) for i = 1, # players do players[i].Character:MoveTo(Vector3.new(-57, 161.351, 800)) --Change these coordinates to where you want the players to spawn wait(3) game.Lighting.LinkedSword:clone().Parent = players[i].Backpack --Change LinkedSword to the name of a weapon (in Lighting) you want to give to the players. You can either delete this line or copy paste more of it. end wait(77) --This is how long the game will last game.Workspace.Minigame1:Remove() --Change Minigame1 to the name of your map. m.Parent = game.Workspace m.Text = "Game over! Thank you for playing!" wait(5) m.Text = "You have 1 minute until the start of the next game." wait(5) m.Parent = nil end m:Remove() players[m].Character:MoveTo(Vector3.new(-318.138, 40.556, 549.973) end
It used to work now it doesn't
intermission script.
Hello, I recommend very basic tutorials on scripting. Here is the link to a playlist created by Roblox on Youtube. Did you write this code? You should be able to fix it if you did write this. Try to troubleshoot to figure out your issues, there should be a video on the playlist about troubleshooting I have included in this answer. You code is not readable in the slightest sense, I also recommend using whats below to show us your notes for what you've contributed to this issue:
Use "--" so you're able to write in your code without causing errors, this is for note taking or other things as well! (I understand that there are already notes in your code but I need notes on the issues with prints, errors, etc.)
Now to get to your code. I apologize that I cannot help you with this because it is difficult to make out what the problem is without your proper diagnostics or effort that you have put forth. If you help me understand your question more and what the issues are, I would be ever so happy to help!
Hope this helps for now!