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

fix my script please? [closed]

Asked by 8 years ago

local replicatedstorage = game:GetService('ReplicatedStorage') local status = replicatedstorage:WaitForChild('InfoValue') print("Loading INFO") local mapstorage = game.Workspace:WaitForChild('mapStorage') print("Loaded In server") while true do

while game.Players.NumPlayers < 1 do status.Value= "There needs to be 2 or more players to begin" repeat wait(2) until game.Players.NumPlayers >= 1 end

for i = 15,0,-1 do status.Value = "Intermission " ..i wait(1) end local mapsinserverstorage = game:GetService("ServerStorage"):GetChildren() local chosenmap = mapsinserverstorage [math.random(1, #mapsinserverstorage)] chosenmap:Clone().Parent = game.Workspace status.Value = 'get ready to start teleporting to the map' wait(3) local spawns = chosenmap:WaitForChild('Spawns') for _, player in pairs(game.Players:GetPlayers()) do if player and #spawns > 0 then local torso = player.Character:WaitForChild('Torso') local allspawns = math.random(1, #spawns) local randomspawn = spawns[allspawns] if randomspawn and torso then table.remove(spawns, allspawns) torso.CFrame = CFrame.new(randomspawn.Position + Vector3.new(0,2,0))
end end end

wait(30)

mapstorage:ClearAllChildren() end

0
For starters put your code in the code block so it makes it easier to read. Simply press the code block button and put your code within it. Secondly what is your code supposed to do. Finally, what is / isn't working and what are the outputs? Uroxus 350 — 8y
0
We do not fix scripts you make without you telling us what it should do, what it's doing, what is going wrong, etc. We are here to help teach not script for people. Also, do as said above this comment^ alphawolvess 1784 — 8y

Closed as Not Constructive by M39a9am3R

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?