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
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
|
| 16 Feb 2014 06:32 PM |
| show snippet of code that breaks, I'm not reading all that. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
|
| 16 Feb 2014 06:38 PM |
| So it does not repeat the process? |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|