I am trying to make a round system with a random map selector but everytime I try this I always get this error:
Here is the script:
local Status = game:GetService("ReplicatedStorage").RoundFolder.Status local CurrentMap = game.Workspace.CurrentMap local MusicFolder = game.Workspace.Music local IntermissionMusic = MusicFolder.Intermission:GetChildren() local RoundMusic = MusicFolder.Round:GetChildren() local IntermissionTime = 20 local RoundTime = 90 local function RunRound() -- Intermission while wait() do for i = IntermissionTime, 1, -1 do Status.Value = "Intermission (" .. i .. ")" task.wait(1) end print("Intermission Ended!") Status.Value = "Choosing Map..." task.wait(2) -- Map Selector local Maps = game:GetService("ServerStorage").Maps local ChosenMap = Maps[math.random(1, #Maps)] local MapClone = ChosenMap:Clone() MapClone.Parent = workspace end end spawn(RunRound)
I was trying to follow a tutorial to see what they did to compare to what I did, it looked just like mine but theirs worked, I tried looking but I couldn’t find anything wrong.