BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 24 Apr 2014 06:46 PM |
plrs = game.Players:GetPlayers() maps = game.Lighting:GetChildren() numplrs = #plrs function selectMAP() selectedMap = maps[math.random(1,#maps)] selectedMap.Parent = Workspace game.Workspace.Timer.Value = 301 repeat wait(1) game.Workspace.Timer.Value = game.Workspace.Timer.Value - 1 until game.Workspace.Timer.Value == 1 or numplrs == 1 ---- m = Instance.new("Message", Workspace) if game.Workspace.Timer.Value == 1 then m.Text = "There was no winner, time ran out." wait(5) m:Destroy() selectedMap:Destroy() script.Disabled = true end if numplrs == 1 then m.Text = "The winner was: "..plrs[1] wait(5) m:Destroy() selectedMap:Destroy() script.Disabled = true end end while wait() do for i,v in pairs(game.Players:GetPlayers()) do if v.Character.Humanoid.Health == 0 then table.remove(v.Character.Name, plrs) end end end function tp() local spawns = selectedMap.Spawns for i = 1, numplrs do plrs[i]:MoveTo(spawns[i].Position) sword = game.ServerStorage["Sword"] end end if Workspace.GoReady.Value == true then selectMAP() tp() Workspace.GoReady.Value = false end
Everything is correct I have no errors in-game except 'Content failed because Could not upload' or something |
|
|
| Report Abuse |
|
|
|
| 24 Apr 2014 07:05 PM |
| Could you explain what you are trying to do, and what exactly it is not doing? Don't just say that it "just isn't doing anything", try to figure out which parts it gets to. A easy way to tell is to put print("hello") or something like that inside functions and loops. If you print the function name or loop, you can tell which is being run and which is not. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 24 Apr 2014 07:28 PM |
put in prints prints nothing |
|
|
| Report Abuse |
|
|
|
| 24 Apr 2014 07:32 PM |
| With your first if statement, you disabled the script before calling the function before it. Why do you need to disable the script? |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 24 Apr 2014 07:40 PM |
| There is a script that renables if the script is deanbled |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 24 Apr 2014 07:44 PM |
re-enables if disabled also here is the game that's broken http://www.roblox.com/Laundry-Day-Sword-Fighting-Simulation-place?id=154145112 LezMakeAGame is the main script Script is the one that disables |
|
|
| Report Abuse |
|
|
|
| 24 Apr 2014 07:52 PM |
Try changing Script to Workspace.LozMakeAGame.Changed:connect(function() if Workspace.LezMakeAGame.Disabled == true then if game.Players.NumPlayers >= 1 then wait(1) Workspace.LezMakeAGame.Disabled = false if game.Workspace.GoReady.Value == false then game.Workspace.GoReady.Value = true end end end end) |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 24 Apr 2014 08:10 PM |
Content failed because not found
what does this mean? Join the game cx |
|
|
| Report Abuse |
|
|
Halpar
|
  |
| Joined: 21 Apr 2014 |
| Total Posts: 91 |
|
|
| 24 Apr 2014 08:23 PM |
| it means you either did not name the map well , or you did not put it in the right place .-. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 24 Apr 2014 08:24 PM |
look at the game nothing wrong. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
| |
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 24 Apr 2014 11:02 PM |
| Are you people just lazy or don't like to help. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 24 Apr 2014 11:03 PM |
well here is what I have now: plrs = game.Players:GetPlayers() maps = game.Lighting:GetChildren() numplrs = #plrs p = print function selectMAP() selectedMap = maps[math.random(1,#maps)] selectedMap.Parent = Workspace game.Workspace.Timer.Value = 301 p('1') repeat wait(1) game.Workspace.Timer.Value = game.Workspace.Timer.Value - 1 until game.Workspace.Timer.Value == 1 or numplrs == 1 p'2' ---- m = Instance.new("Message", Workspace) if numplrs == 1 then m.Text = "The winner was: "..plrs[1] wait(5) m:Destroy() selectedMap:Destroy() script.Disabled = true end if game.Workspace.Timer.Value == 1 then m.Text = "There was no winner, time ran out." wait(5) m:Destroy() selectedMap:Destroy() script.Disabled = true end p'3' end while wait() do for i,v in pairs(game.Players:GetPlayers()) do if v.Character.Humanoid.Health == 0 then table.remove(plrs,i) p'4' end end end function tp() local spawns = selectedMap.Spawns for i = 1, numplrs do plrs[i]:MoveTo(spawns[i].Position) p'5' sword = game.ServerStorage["Sword"] end end if Workspace.GoReady.Value == true then selectMAP() p'6' tp() p'7' Workspace.GoReady.Value = false end |
|
|
| Report Abuse |
|
|
|
| 24 Apr 2014 11:10 PM |
Try changing Script to Workspace.LozMakeAGame.Changed:connect(function() if Workspace.LezMakeAGame.Disabled == true then if game.Players.NumPlayers >= 1 then wait(1) Workspace.LezMakeAGame.Disabled = false if game.Workspace.GoReady.Value == false then game.Workspace.GoReady.Value = true end end end end)
Is supposed to be...
Try changing Script to Workspace.LezMakeAGame.Changed:connect(function() --You spelled it wrong. <.< if Workspace.LezMakeAGame.Disabled == true then if game.Players.NumPlayers >= 1 then wait(1) Workspace.LezMakeAGame.Disabled = false if game.Workspace.GoReady.Value == false then game.Workspace.GoReady.Value = true end end end end)
|
|
|
| Report Abuse |
|
|
|
| 24 Apr 2014 11:11 PM |
So in reality just...
Try changing Script to Workspace.LezMakeAGame.Changed:connect(function() if Workspace.LezMakeAGame.Disabled == true then if game.Players.NumPlayers >= 1 then wait(1) Workspace.LezMakeAGame.Disabled = false if game.Workspace.GoReady.Value == false then game.Workspace.GoReady.Value = true end end end end)
|
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
| |
|
Halpar
|
  |
| Joined: 21 Apr 2014 |
| Total Posts: 91 |
|
|
| 24 Apr 2014 11:52 PM |
the thing is if u don't disable it the script will not work, but if u disable it the script destroys the property |
|
|
| Report Abuse |
|
|
|
| 24 Apr 2014 11:59 PM |
| Localize m = to local m =. |
|
|
| Report Abuse |
|
|
|
| 25 Apr 2014 12:00 AM |
Try this
plrs = game.Players:GetPlayers() maps = game.Lighting:GetChildren() numplrs = #plrs p = print function selectMAP() selectedMap = maps[math.random(1,#maps)] selectedMap.Parent = Workspace game.Workspace.Timer.Value = 301 p('1') repeat wait(1) game.Workspace.Timer.Value = game.Workspace.Timer.Value - 1
until game.Workspace.Timer.Value == 1 or numplrs == 1 p'2' ---- m = Instance.new("Message", Workspace) if numplrs == 1 then m.Text = "The winner was: "..plrs[1] wait(5) m:Destroy() selectedMap:Destroy() end if game.Workspace.Timer.Value == 1 then m.Text = "There was no winner, time ran out." wait(5) m:Destroy() selectedMap:Destroy() wait(1) end p'3' end while wait() do for i,v in pairs(game.Players:GetPlayers()) do if v.Character.Humanoid.Health == 0 then table.remove(plrs,i) p'4' end end end function tp() local spawns = selectedMap.Spawns for i = 1, numplrs do plrs[i]:MoveTo(spawns[i].Position) p'5' sword = game.ServerStorage["Sword"] end end if Workspace.GoReady.Value == true then selectMAP() p'6' tp() p'7' Workspace.GoReady.Value = false end |
|
|
| Report Abuse |
|
|