generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

I tried to make a map load script

Previous Thread :: Next Thread 
Erisbeg is not online. 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 is not online. Erisbeg
Joined: 07 Sep 2013
Total Posts: 1778
08 Oct 2016 03:01 PM
Well, I just got filtered.



Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
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 is not online. Erisbeg
Joined: 07 Sep 2013
Total Posts: 1778
08 Oct 2016 03:13 PM
thanks


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image