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 » Scripters
Home Search
 

Re: Why isn't this working?

Previous Thread :: Next Thread 
Katherinae is not online. Katherinae
Joined: 12 Feb 2014
Total Posts: 4201
22 Feb 2017 02:36 AM
So basic I have a light which is in rainbow order, when one of the lights gets a certain transparency, then the next one goes.

Here's a example of one of the scripts

script.parent.Transparency = 0

if game.Workspace.h.pick2.Transparency < 0.99 then
for i = 0, 1, 0.01 do
script.Parent.Transparency = i
wait(.1)
end
end


Why isn't it working? The first light just has this script btw :

for i = 0, 1, 0.01 do
script.Parent.Transparency = i
wait(.1)
end


Report Abuse
Vaqxus is not online. Vaqxus
Joined: 18 Dec 2016
Total Posts: 1087
22 Feb 2017 03:19 AM
this is true 24/7... Workspace.h.pick2.Transparency < 0.99
Report Abuse
Katherinae is not online. Katherinae
Joined: 12 Feb 2014
Total Posts: 4201
24 Feb 2017 06:55 PM
Ok got it.
So how do I fix it?


Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
24 Feb 2017 07:00 PM
in a script: local lights = ##################################################################### --replace with lights of rainbow colors for i=1, #lights do for i=0, 1, 0.01 do lights[i].Transparency = i wait() end end
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
24 Feb 2017 07:01 PM
hashtags are a table of lights

{red_light,orange_light,yellow_light}

etc.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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