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: Minigame Script Stopping?

Previous Thread :: Next Thread 
Paramore2 is not online. Paramore2
Joined: 07 Sep 2009
Total Posts: 6402
10 Jan 2012 03:51 PM
My game tends to stop working once someone leaves or it just tends to break. I will post where it usually gets stuck in game by saying "--HERE" next to it. Please help! Sorry it is such a long script, I'm just not sure where it is messing up exactly:




while true do
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "Claustrophobic!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(102.3, 17.9, 60.44))
end
wait(60)
message.Text = "Minigame ended."
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "Grind or Run!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(148.5, 1.8, -34.5))
end
wait(60)
message.Text = "Minigame ended." --HERE
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "The Machine!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(106.5, 7.8, -132.5))
end
wait(60)
message.Text = "Minigame ended." --HERE
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "Checkerboard!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-157, 33.8, 67.5))
end
wait(60)
message.Text = "Minigame ended."
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "The Escape!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-212, 3.8, 184))
end
wait(90)
message.Text = "Minigame ended." --HERE
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "Confusion!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-144, 17.4, -200.5))
end
wait(60)
message.Text = "Minigame ended." --HERE
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "Maze Cubed!"
wait(5)
message.Text = "SPECIAL GAME: You have 3 minutes to find the exit!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(193.2, 53.39, -350.9))
end
wait(180)
message.Text = "Minigame ended."
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "The Maze!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(28, 15.4, -208))
end
wait(60)
message.Text = "3"
wait(1)
message.Text = "2"
wait (1)
messgae.Text = "1"
wait(1)
message.Text = "Minigame ended."
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "Spin on Spin!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(28.5, 13.99, -62.49))
end
wait(60)
message.Text = "Minigame ended."
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "2D Adventure!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-17, 19.2, 146))
end
wait(60)
message.Text = "Minigame ended."
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "S.O.S!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(190.5, 5.6, 86))
end
wait(90)
message.Text = "Minigame ended."
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()
end



It always stops saying "Minigame ended." and the message won't go away. I would appreciate all the help I could get with this. Thank you for reading.
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
10 Jan 2012 03:53 PM
You just posted like a hundred lines of script and expect us to go through all of them and tell you a problem?
Report Abuse
Paramore2 is not online. Paramore2
Joined: 07 Sep 2009
Total Posts: 6402
10 Jan 2012 03:56 PM
Ya I'm sorry, it's near the "Minigame ended." parts! I'm sorry for the long post but, I was reall unsure what to post but, here is a shorter version:

My game tends to stop working once someone leaves or it just tends to break. I will post where it usually gets stuck in game by saying "--HERE" next to it. Please help! Sorry it is such a long script, I'm just not sure where it is messing up exactly:


wait(20)
local Hint = Instance.new("Hint", workspace)
Hint.Text = "Get ready, the minigame will start in one minute!"
wait(60)
Hint.Text = "Fun, Frusturating, & Hard Mingames! Presented by: X-gravity & Paramore2!"
wait (0.1)
local message = Instance.new("Message", workspace)
message.Text = "Confusion!"
wait(5)
message.Text = "Get ready!"
wait(5)
message.Text = "Minigame starting in 3..."
wait(1)
message.Text = "2..."
wait(1)
message.Text = "1..."
wait(1)
message.Text = "Start!"
wait(1)
message.Parent = game.Lighting
players = game.Players:GetChildren()
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-144, 17.4, -200.5))
end
wait(60)
message.Text = "Minigame ended." --HERE!!!!!!!!!!! <---------------
message.Parent = Workspace
for i=1,#players do
players[i].Character:MoveTo(Vector3.new(-1, 289, -2.5))
end
wait(5)
message:Destroy()

I made me "HERE" sign a little more noticeable as well.
Report Abuse
Paramore2 is not online. Paramore2
Joined: 07 Sep 2009
Total Posts: 6402
10 Jan 2012 04:21 PM
BUMP
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