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: Makes my studio crash?

Previous Thread :: Next Thread 
SenjuNaruto is not online. SenjuNaruto
Joined: 16 Feb 2012
Total Posts: 368
11 Sep 2013 04:38 PM
Search = script.Parent
x = Search.BackgroundTransparency
Go = script.Parent.Go
run = game:GetService("RunService")
while Go.Value == 1 do
if x == 1 then
x = x - 0.1
run.Stepped:wait(0.05)
elseif x == 0 then
x = x + 0.1
run.Stepped:wait(0.05)
end
end

All variables are defined.
Report Abuse
SenjuNaruto is not online. SenjuNaruto
Joined: 16 Feb 2012
Total Posts: 368
11 Sep 2013 04:53 PM
bump
Report Abuse
thepizz is not online. thepizz
Joined: 05 Mar 2011
Total Posts: 2612
11 Sep 2013 04:54 PM
I'm not sure if it has much to do with your code, I have been running simple scripts and studio ends up crashing on me..
Report Abuse
SenjuNaruto is not online. SenjuNaruto
Joined: 16 Feb 2012
Total Posts: 368
11 Sep 2013 04:54 PM
It crashes every time :C
Report Abuse
SenjuNaruto is not online. SenjuNaruto
Joined: 16 Feb 2012
Total Posts: 368
11 Sep 2013 05:00 PM
any more solutions?
Report Abuse
SenjuNaruto is not online. SenjuNaruto
Joined: 16 Feb 2012
Total Posts: 368
11 Sep 2013 05:06 PM
Now studio wont even update the place. Wow.
Report Abuse
SenjuNaruto is not online. SenjuNaruto
Joined: 16 Feb 2012
Total Posts: 368
11 Sep 2013 05:15 PM
one last bump
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
11 Sep 2013 05:25 PM
Theres no wait(x) in your script, and you have a while loop.
Report Abuse
SenjuNaruto is not online. SenjuNaruto
Joined: 16 Feb 2012
Total Posts: 368
11 Sep 2013 05:28 PM
I was pretty sure run.Stepped:wait() can hold over a loop like wait() can.
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
11 Sep 2013 05:30 PM
I've never heard of ':wait()'
wait() can't be used like that I think
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
11 Sep 2013 05:36 PM

Search = script.Parent
x = Search.BackgroundTransparency
Go = script.Parent.Go
run = game:GetService("RunService")
while Go.Value == 1 do
if Search.BackgroundTransparency == 1 then
for i = 1,0,-0.1 do
Search.BackgroundTransparency = i
wait(0.05)
end
elseif x == 0 then
for i = 0,1 do
Search.BackgroundTransparency = i
wait(0.05)
end
end
wait(0.03)
end
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
11 Sep 2013 05:37 PM
:wait() can be used like so:

event:wait()

It waits for 'event' to fire and then continues the script.
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