ntmcd
|
  |
| Joined: 07 Oct 2011 |
| Total Posts: 2432 |
|
|
| 20 Apr 2013 03:11 PM |
| I made a new script. It works perfectly in build but not edit. Why? |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2013 03:12 PM |
| What is the script and what does it do (if anything)? |
|
|
| Report Abuse |
|
|
ntmcd
|
  |
| Joined: 07 Oct 2011 |
| Total Posts: 2432 |
|
|
| 20 Apr 2013 03:14 PM |
| a regular(non free model) gameround script. |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2013 03:14 PM |
| lol... I never use edit mode so I can't really help. |
|
|
| Report Abuse |
|
|
ntmcd
|
  |
| Joined: 07 Oct 2011 |
| Total Posts: 2432 |
|
|
| 20 Apr 2013 03:16 PM |
| I'm so sorry i didnt mean edit i meant play mode. |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2013 03:18 PM |
Your script might be relying on segments that MUST be performed in a LocalScript. If you post the script we might be able to help. |
|
|
| Report Abuse |
|
|
ntmcd
|
  |
| Joined: 07 Oct 2011 |
| Total Posts: 2432 |
|
|
| 20 Apr 2013 03:19 PM |
--hax bro --script by ntmcd
function gameround() c = Instance.new("Message") c.Parent = Workspace c.Name = "GameMessage" --inserts a message c.Text = ("Game Round ended") wait(0.5) local players = game.Players:GetChildren() for i = 1, #players do if players[i].TeamColor == BrickColor.new("White") and players[i].Neutral == true then end if players[i].TeamColor == BrickColor.new("Really red") then redscore = players[i].leaderstats.KOs.Value print(redscore) reddeaths = players[i].leaderstats.Wipeouts.Value print(reddeaths) end if players[i].TeamColor == BrickColor.new("Lime green") then greenscore = players[i].leaderstats.KOs.Value print(greenscore) reddeaths = players[i].leaderstats.Wipeouts.Value end end if redscore == nil then redscore = 0 end if greenscore == nil then greenscore = 0 end if greenscore < redscore then c.Text = "Red Victory" wait(2)
end if redscore < greenscore then c.Text = "Green Victory" wait(2)
if redscore == greenscore then c.Text = "Tie" wait(2) end
end p = game.Players:GetChildren() for i= 1, #p do p[i].Character.Torso.Neck:remove() --kills everyone wait (0.1) p[i].leaderstats.KOs.Value = 0 p[i].leaderstats.Wipeouts.Value = 0 end wait(2) game.Lighting.Pauseboxes.Parent = game.Workspace --boxes everyone c.Text = ("New Game Round Loading") wait(1) c.Text = ("New Game Round Loading.") --the game round is loading wait(1) c.Text = ("New Game Round Loading..") wait(1) c.Text = ("New Game Round Loading...") wait(1) tdm()
end
function tdm() c.Text = ("Game Round: Team Deathmatch") wait(5) game.Workspace.Pauseboxes.Parent = game.Lighting --gets rid of the boxes c.Text = ("GO!!!!!!!!!!!") wait(1) game.Workspace.GameMessage:Destroy() --destroys the message wait(200) end
wait(10) while true do a = 6 gameround() end
|
|
|
| Report Abuse |
|
|
ntmcd
|
  |
| Joined: 07 Oct 2011 |
| Total Posts: 2432 |
|
| |
|
|
| 20 Apr 2013 03:26 PM |
| The only thing I can think of is if the players' characters don't exist, or the Neck/Torso doesn't exist when the roundend() function is called. Try checkign to see if the Character, Torso, and Neck all exist. |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2013 03:31 PM |
| I recomend using this : http://www.roblox.com/Remote-Error-Monitoring-System-item?id=65774258 to debug it. |
|
|
| Report Abuse |
|
|
ntmcd
|
  |
| Joined: 07 Oct 2011 |
| Total Posts: 2432 |
|
| |
|