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 » Scripting Helpers
Home Search
 

Re: Why don't this work?

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 06:26 PM
So, it basically brings u to the game, clones the tool then brings u back to lobby and destroys Gun then breaks???



local maps = game.Lighting.Maps
local Text = "You need atleast 2 Players to play the game"
while true do
if game.Players.NumPlayers < 2 then
local mpd = Instance.new("Message", workspace)
repeat
for i = 1,#Text do
wait(0.1)
mpd.Text = (Text:sub(1, i))
end
until Game.Players.NumPlayers > 1
mpd:Destroy()
end
for _,map in pairs (maps:GetChildren()) do
local n = Instance.new("Message", workspace)
n.Text = "The next map is "..map.Name
wait(2)
n:Destroy()
for i,v in pairs(game.Players:GetPlayers()) do
local Player = v
wait()
local m = map:Clone()
v.Character.Torso.CFrame = CFrame.new(307, 21, -185) --Bring players to the game.
wait(0.2)
Player.CameraMode = "Classic"
wait()
Player.CameraMode = "LockFirstPerson"
m.Parent = game.Workspace

game.ServerStorage.Gun:Clone().Parent = Player.Backpack
end
wait(10)
for i,v in pairs(game.Players:GetPlayers()) do
local player = v
local m = map:Clone()

v.Character.Torso.CFrame = CFrame.new(275, 219.6, -44) --Bring players to the Lobby
player.CameraMode = "LockFirstPerson"
wait(0.2)
player.CameraMode = "Classic"
wait()

m.Parent = game.Workspace
wait(2)
m:Destroy()
player.Backpack.Gun:Destroy()
end
end
end
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 06:30 PM
Help[
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
16 Feb 2014 06:32 PM
show snippet of code that breaks, I'm not reading all that.
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 06:35 PM
@Duel, it works until the bottom, then breaks. LOL
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 06:36 PM
:D
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
16 Feb 2014 06:38 PM
So it does not repeat the process?
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 06:40 PM
@Duel, well i'm not 100% sure. But, without the tool crap, it worked fine
:P
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 06:44 PM
Bump
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 06:51 PM
Help1!1
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 07:24 PM
Halp!
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 07:35 PM
Help
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
16 Feb 2014 07:44 PM
Bump.
Report Abuse
HowlsCoffee is not online. HowlsCoffee
Joined: 01 Jan 2014
Total Posts: 248
16 Feb 2014 07:48 PM
Maybe Player.Backpack.Gun:Destroy()? I don't know if it matters is Player isn't capitalized and shouldn't end be like end
end
end
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
17 Feb 2014 07:01 AM
lol, I have 2 variables, 1 with P and one with p.
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
17 Feb 2014 08:15 AM
hELP!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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