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: ...freezes up my game?

Previous Thread :: Next Thread 
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 02:29 PM
it shouldn't,there isn't much,if any lag in it..
it worked when I used a empty thing..but not when I used it in my actual game..
it just froze up,completely..

m = Instance.new("Message",Workspace)
m.Name = ".."
m.Text = "AHHH,A METEORS COMING!"
p = Instance.new("Part",Workspace)
p.Size = Vector3.new(700,700,700)
p.Shape = "Ball"
Instance.new("Fire",p).Heat = 25
Instance.new("Fire",p).Heat = 25
Instance.new("Fire",p).Heat = 25
Instance.new("Fire",p).Heat = 25
p.Position = Workspace.islandmaker2012.Torso.Position+Vector3.new(0,3000,50)
p.BrickColor = BrickColor.new("Really red")
p.Touched:connect(function(h)
e = Instance.new("Explosion",Workspace)
e.Position = p.Position+Vector3.new(0,-200,0)
e.BlastRadius = 1000
e = Instance.new("Explosion",Workspace)
e.BlastRadius = 1000
e.Position = p.Position+Vector3.new(0,-250,10)
end)
wait(3)
for i=7,0,-1 do
m.Text = "AHH! its coming in:"..i.." seconds!"
p.Anchored = true
wait(0.5)
p.Anchored = false
wait(0.5)
end
m:destroy()
wait(30)
p:destroy()
Report Abuse
ObsessedwithMario is not online. ObsessedwithMario
Joined: 03 Mar 2012
Total Posts: 268
26 Feb 2014 02:58 PM
No idea. Maybe it has to do with the for loop, but otherwise, :(
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 02:59 PM
it worked in a empty baseplate..
why not inna game?
theres a good amount of wait time..
it doesn't try to print like 5895789578954 things at once,yet I hit play,and once it gets to 50% loaded,it freezes completely
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
26 Feb 2014 03:19 PM
I ran this script and it worked fine.

#nerdsunited
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 03:22 PM
yes,it does work
in an empty game..
I tried running it in studio in a game with terrain and stuff in it
and other scripts..
and it froze
like I said,it works fine when there is nothing else in the game..
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
26 Feb 2014 03:24 PM
Are you sure it's not just your computer being "bad"?

(no offence)

#nerdsunited
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 03:26 PM
yes im sure,because it works in an empty place..
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
26 Feb 2014 03:26 PM
Yes, but an empty place has nothing else.. A place with detail will lag when you add a giant boulder crashing down onto the floor.

#nerdsunited
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 03:27 PM
well,my game has like no lag in it..and it works fine when I don't have it in the game..(the script)
I changed the size,it still froze..
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
26 Feb 2014 03:29 PM
How about you add a huge wait before the script starts, so it gives a chance for the game to load.

Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 03:30 PM
it works now,still laggy,but its tiny now,and doesn't work how it should..

m = Instance.new("Message",Workspace)
m.Name = ".."
m.Text = "AHHH,A METEORS COMING!"
p = Instance.new("Part",Workspace)
p.Size = Vector3.new(100,100,100)
p.Shape = "Ball"
Instance.new("Fire",p).Heat = 25
Instance.new("Fire",p).Heat = 25
Instance.new("Fire",p).Heat = 25
Instance.new("Fire",p).Heat = 25
p.Position = Workspace.islandmaker2012.Torso.Position+Vector3.new(0,3000,50)
p.BrickColor = BrickColor.new("Really red")
p.Touched:connect(function(h)
e = Instance.new("Explosion",Workspace)
e.Position = p.Position+Vector3.new(0,-200,0)
e.BlastRadius = 1000
e = Instance.new("Explosion",Workspace)
e.BlastRadius = 1000
e.Position = p.Position+Vector3.new(0,-250,10)
end)
wait(3)
for i=7,0,-1 do
m.Text = "AHH! its coming in:"..i.." seconds!"
p.Anchored = true
wait(0.5)
p.Anchored = false
wait(0.5)
end
m:destroy()
wait(30)
p:destroy()
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