I also need this to work with my script that gives you the items every match.
wait(5) local tools = {"LinkedSword", "Flip"} -- Put the following tools in lighting local mapDirectory = game.Lighting.Maps -- This is where your maps are! local msg = Instance.new("Message") msg.Parent = game.Lighting local time = script.Time -- Script ---------------------------------------------------------------------------------------------------- --Da Loop-- while true do -- The Loop local maps = mapDirectory:getChildren() -- Defins what maps means --End of Da Loop-- --Without the fail safe we would encounter unhealthy bugs. -----This is the fail safe----- if #maps == 0 then --Counts how many maps there are, if theres 0, removes da script. print("Maps not found! Selfremoving...") --lets you know whats going on script:remove() --removes the script return end -- Ends this function -----Fail Safe Ends----- ---Part that picks da maps----- local pickedMap = maps[math.random(1, #maps)] --Defines Pickedmap, as 1-# of maps local pickedMapClone = pickedMap:clone() --defines what the picked map clone is pickedMapClone.Parent = game.Workspace -- defines the parent of the picked map pickedMapClone:makeJoints() -- required whenever you insert a model into the world, otherwise it falls apart (From Telamon) msg.Parent = game.Workspace --makes a message msg.Text = "Map Change!" --makes the text wait(3) --waits 3 seconds msg.Text = "Picked Map is " ..pickedMapClone.Name.."." --makes the message of what map print("Map inserted: " .. pickedMap.Name) --says when map is made wait(5) --waits 5 secs. msg.Parent = game.Lighting wait(time.Value) --the value time is refrenced to the time of waitness pickedMapClone:remove() --removes the cloned map target = game.Workspace.target target2 = game.Workspace.target2 target3 = game.Workspace.target3 targets = {target.CFrame,target2.CFrame,target3.CFrame} players = game.Players:GetPlayers() for i = 1,#players do players[i].Character.Torso.CFrame = targets[math.random(1,#targets)]-- Place a brick somewhere in the map and call it target end end wait(1) -- change to any number game.Workspace.tools:Clone(game.Workspace.Players.StarterPack)