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: How do I make this script repeat itself?

Previous Thread :: Next Thread 
Triumvir is not online. Triumvir
Joined: 05 Mar 2012
Total Posts: 14879
24 Jan 2014 12:19 AM
wait(3)

local function ghost(part)
part.Transparency = 0.7
end

ghost(Game.Workspace.Baseplate)

wait(2)

local function unghost(part)
part.Transparency = 0
end

unghost(Game.Workspace.Baseplate)
Report Abuse
VoidShredder is not online. VoidShredder
Joined: 06 Jan 2014
Total Posts: 1467
24 Jan 2014 12:19 AM
repeat
wait(3)

local function ghost(part)
part.Transparency = 0.7
end

ghost(Game.Workspace.Baseplate)

wait(2)

local function unghost(part)
part.Transparency = 0
end

unghost(Game.Workspace.Baseplate)
until nil
Report Abuse
Triumvir is not online. Triumvir
Joined: 05 Mar 2012
Total Posts: 14879
24 Jan 2014 12:20 AM
thanks
Report Abuse
Triumvir is not online. Triumvir
Joined: 05 Mar 2012
Total Posts: 14879
24 Jan 2014 12:58 AM
also do you know how to change the brick color?
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
24 Jan 2014 01:12 AM
BrickColor = BrickColor.new("Bright blue")
Report Abuse
Triumvir is not online. Triumvir
Joined: 05 Mar 2012
Total Posts: 14879
24 Jan 2014 01:27 AM
also whats wrong with this

local function epil(part)
part.BrickColor = BrickColor.new("Bright blue")
end

local function unepil(part)
part.BrickColor = BrickColor.new("Pink")
end

repeat
epil(Game.Workspace.Baseplate)
wait(0.5)
unepil(Game.Workspace.Baseplate)
until nil
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
24 Jan 2014 02:02 AM
Add another wait because right now, line 1 and 3 in the repeat run at the same time.
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