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: Not a child of Lighting.

Previous Thread :: Next Thread 
1AmyRose1 is not online. 1AmyRose1
Joined: 01 Jun 2008
Total Posts: 3094
03 Jan 2012 10:27 AM
Hey, can you guys make it that Game1 actually does go to Lighting?

while true do
wait(15)
local m = math.random(1)
local player = game.Players:GetPlayers()
for i = 1, #player do
msg = Instance.new("Message")
msg.Parent = nil
if m == 1 then
msg.Parent = game.Workspace
msg.Text = "Loading Wall."
wait(1)
msg.Text = "Loading Wall.."
wait(1)
msg.Text = "Loading Wall..."
wait(1)
msg.Text = "Loading Wall...."
wait(1)
msg.Text = "Loading Wall....."
wait(1)
msg.Text = "Loading Obstacles."
wait(1)
msg.Text = "Loading Obstacles.."
wait(1)
msg.Text = "Loading Obstacles..."
wait(1)
msg.Text = "Loading Obstacles...."
wait(1)
msg.Text = "Loading Obstacles....."
wait(1)
msg.Text = "Done!"
wait(1)
msg.Text = "Starting..."
wait(5)
player[i].Character:MoveTo(Vector3.new(12.5, 9.4, 276.5))
msg:remove()
game.Lighting.Game1.Parent = game.Workspace
wait(60)
game.Workspace.Game1.Parent = game.Lighting -- This Game1.
end
end
end


Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
03 Jan 2012 10:30 AM
why not just use a clone and a remove it would sole the problem -_-'
Report Abuse
Biostream is not online. Biostream
Joined: 28 Mar 2011
Total Posts: 913
03 Jan 2012 10:30 AM
Delete the wait(60) for testing purposes and see if it is in Lighting, then remove it. Maybe you just aren't waiting long enough
Report Abuse
1AmyRose1 is not online. 1AmyRose1
Joined: 01 Jun 2008
Total Posts: 3094
03 Jan 2012 10:33 AM
@Crasy

Oh hello Mr. Obvious, I know that is the way. But I do not know how, thats why I came here.
Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
03 Jan 2012 10:35 AM
ok do like
game.Lighting.Game1:clone().Parent = game.Workspace
wait(60)
game.Workspace.Game1:Destroy()
--there problem fixed game is still in lighting and is not in workspace anymore -_-
Report Abuse
1AmyRose1 is not online. 1AmyRose1
Joined: 01 Jun 2008
Total Posts: 3094
03 Jan 2012 10:38 AM
Alright, but I'm not going to use Destroy() xD

That function is for noobs.
Report Abuse
CrasyTrex is not online. CrasyTrex
Joined: 13 Mar 2011
Total Posts: 761
03 Jan 2012 10:39 AM
=O it is not it is very nice because it makes the object parent's nil and it locks the parent....
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
03 Jan 2012 10:49 AM
@1Amy1

Your noob for not knowing it's a method....
Report Abuse
1AmyRose1 is not online. 1AmyRose1
Joined: 01 Jun 2008
Total Posts: 3094
03 Jan 2012 12:26 PM
@Miz656

And your a noob for not writing my name correct. :P
Report Abuse
cj10127 is not online. cj10127
Joined: 26 Jul 2009
Total Posts: 1818
03 Jan 2012 12:31 PM
while true do
wait(15)
local m = math.random(1)
local player = game.Players:GetPlayers()
for i = 1, #player do
msg = Instance.new("Message")
msg.Parent = nil
if m == 1 then
msg.Parent = game.Workspace
msg.Text = "Loading Wall."
wait(1)
msg.Text = "Loading Wall.."
wait(1)
msg.Text = "Loading Wall..."
wait(1)
msg.Text = "Loading Wall...."
wait(1)
msg.Text = "Loading Wall....."
wait(1)
msg.Text = "Loading Obstacles."
wait(1)
msg.Text = "Loading Obstacles.."
wait(1)
msg.Text = "Loading Obstacles..."
wait(1)
msg.Text = "Loading Obstacles...."
wait(1)
msg.Text = "Loading Obstacles....."
wait(1)
msg.Text = "Done!"
wait(1)
msg.Text = "Starting..."
wait(5)
player[i].Character:MoveTo(Vector3.new(12.5, 9.4, 276.5))
msg:remove()
game.Lighting.Game1:Clone().Parent = game.Workspace
wait(60)
game.Workspace.Game1:Destroy()
end
end

That will clone it from lighting into workspace then remove it after 60 seconds therefore keeping it in lighting.
end
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
03 Jan 2012 12:32 PM
@1AmyRose1

You're a noob for not writing my name correct either. You don't capitalize miz :)
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