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: Help - Stupidest Question Ever

Previous Thread :: Next Thread 
drew8732 is not online. drew8732
Joined: 01 Apr 2010
Total Posts: 1965
13 Oct 2011 07:58 PM
Alright... my first post on SH and my stupidest question ever. But here I go... is there a function that makes an event go on forever? Halp, pl0x?
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
13 Oct 2011 07:59 PM
More details..
Report Abuse
Carbon131 is not online. Carbon131
Joined: 09 Aug 2008
Total Posts: 485
13 Oct 2011 08:00 PM
There is loops and coroutines.
Report Abuse
CrazyBananaMonkey is not online. CrazyBananaMonkey
Joined: 10 Nov 2009
Total Posts: 1599
13 Oct 2011 08:01 PM
while wait() do
-- code
end
Report Abuse
drew8732 is not online. drew8732
Joined: 01 Apr 2010
Total Posts: 1965
13 Oct 2011 08:01 PM
I don't know, say I want a brick to switch between invisible and visible. (This is just an example.)

So...

game.Workspace.Part1.Transperency = Transperency.new(5.0)
game.Workspace.Part1.Transperency = Transperency.new(0)
[Repeat function here]
Report Abuse
are31 is not online. are31
Joined: 09 Nov 2007
Total Posts: 13767
13 Oct 2011 08:03 PM
While true do
Script here
wait(2)
end
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
13 Oct 2011 08:03 PM
First of all, that wouldn't work

while wait(.5) do
workspace.Part1.Transparency = .5
wait(.5)
workspace.Part1.Transparency = 0
end

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and breaker of combos::]-
Report Abuse
drew8732 is not online. drew8732
Joined: 01 Apr 2010
Total Posts: 1965
13 Oct 2011 08:04 PM
Alright, so how do I apply this command into my invisible-visible script?
Report Abuse
drew8732 is not online. drew8732
Joined: 01 Apr 2010
Total Posts: 1965
13 Oct 2011 08:04 PM
Late post >.>

You guys post fast here on SH.
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
13 Oct 2011 08:05 PM
while wait(.5) do
script.Parent.Transparency = .5 or 0
end
Report Abuse
drew8732 is not online. drew8732
Joined: 01 Apr 2010
Total Posts: 1965
13 Oct 2011 08:06 PM
Thanks, guys!

~Forum closed~
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