Erisbeg
|
  |
| Joined: 07 Sep 2013 |
| Total Posts: 1778 |
|
|
| 08 Oct 2016 03:00 PM |
Can you see what's wrong with it? This may look really crappy, I'm new to scripting.
local replicatedstorage = game:GetService('ReplicatedStorage') ##########################################################################################################################while true do while game.Players.NumPlayers < 2 do status.Value = 'There needs to be 2 or more players to begin!' repeat wait(2) until game.Players.NumPlayers >= 2 end
for i = 30,0,-1 do status.Value = 'Intermission '..i wait(1) end
local mapsinserverstorage = game:GetService('ServerStorage'):GetChildren() local choosemap = mapsinserverstorage[math.random(1, #mapsinserverstorage)] choosemap:Clone().Parent = game.Workspace status.Value = 'Get ready, round is about to start!' wait(3) local spawns = chosenmap:WaitForChild('Spawns'):GetChildren() for _, player in pairs(game.Players:GetPlayers())do if player and #spawns > 0 local torso = player.Character:WaitForChild('Torso') local allspawns = math.random (1, #spawns) local randomspawn = spawns[allspawns] if spawn and torso then table.remove(spawns, allspawns) torso.CFrame = CFrame.new(randomspawnposition + Vector3.new(0,2,0) end end end
mapstorage:ClearAllChildren() end
|
|
|
| Report Abuse |
|
Erisbeg
|
  |
| Joined: 07 Sep 2013 |
| Total Posts: 1778 |
|
|
| 08 Oct 2016 03:01 PM |
Well, I just got filtered.
|
|
|
| Report Abuse |
|
|
| 08 Oct 2016 03:11 PM |
this looks like a script from one of the Mad Bloxxer Development playlists
some scripts might not work right now that vid was made in 2013 :P
also its randomspawn.Position tho and also the player's torso should be 3 studs above the spawn location also use CFrame.new instead of Vector3 |
|
|
| Report Abuse |
|
Erisbeg
|
  |
| Joined: 07 Sep 2013 |
| Total Posts: 1778 |
|
| |