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
 

What is wrong here

Previous Thread :: Next Thread 
LOBOT44 is not online. LOBOT44
Joined: 03 Feb 2010
Total Posts: 23539
13 Jul 2012 07:12 PM
local message = Instance.new("Message")
message.Parent = game.Workspace
local maps = game.Lighting.Maps:children()
local disasters = game.Lighting.Disasters:children()

while true do
wait()
for i = 20, 0, -1 do
message.Text = "Intermission: " .. i
wait(1)
end

message.Text = ""
local player = game.Players:GetPlayers()

for x = 1, #player do
player[x].Character.Torso.CFrame = CFrame.new(Vector3.new(-0.5, 6.5, -20.5)) --Teleports to the map
end

local disaster = disasters[math.random(1, #disasters)]

if disaster then
disaster = disaster:clone()
disaster.Parent = game.Workspace
disaster:makeJoints()
message.Text = "Disaster is: " .. disaster
end

local map = maps[math.random(1, #maps)]

if map then
map = map:clone()
map.Parent = game.Workspace
map:makeJoints()
message.Text = "Map has been chosen: " .. map
end

wait(50)

for i = 10,0,-1 do
message.Text = "Game over in: " .. i
wait(1)
end

if disaster then
disaster:remove()
end

if map then
map:remove()
end

message.Text = ""
disaster:remove()

for x = 1, #player do
player[x].Character.Torso.CFrame = CFrame.new(Vector3.new(-0.5, 5, -20.5)) --Teleports back to the lobby
end
end
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
13 Jul 2012 07:14 PM
Don't repost.

-------------------------
~thedestroyer115, like me? Join my forum fan group!: http://www.roblox.com/Groups/group.aspx?gid=643337~
Report Abuse
policechiefronaldo is not online. policechiefronaldo
Joined: 01 May 2010
Total Posts: 2789
13 Jul 2012 07:15 PM
I don't know because you don't explain what is wrong.
Report Abuse
LOBOT44 is not online. LOBOT44
Joined: 03 Feb 2010
Total Posts: 23539
13 Jul 2012 07:27 PM
I dont know what is wrong.
I posted another tread because this one wasnt active.
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