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: PointLight Help!

Previous Thread :: Next Thread 
Call911ForEmergency is not online. Call911ForEmergency
Joined: 14 Jan 2014
Total Posts: 1
14 May 2014 04:49 AM
I'm trying to make a script of where it changes the pointlight color to a random color each 0.3 seconds. This is not working:

-- this script is inside PointLight
while true do
script.Parent.Color = Color.Random()
wait(0.3)
end

Any help?

Report Abuse
masterCameron101 is online. masterCameron101
Joined: 28 Mar 2010
Total Posts: 1377
14 May 2014 04:56 AM
while wait(0.3) do
script.Parent.Color=Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
end

~masterCameron101, advanced Lua programmer, certified in Photoshop and geek. Have I help you? If so; support me by buying gear from any of my games, I'd appreciate it!~
Report Abuse
Prescience is not online. Prescience
Joined: 26 Apr 2014
Total Posts: 188
14 May 2014 07:22 AM
while wait(.3)do
script.Parent.Color=Color3.new(math.random(0,255)/255,math.random(0,255)/255,math.random(0,255)/255)
end
Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
14 May 2014 09:24 AM
^

I may be horribly wrong, but I think it's going to give out a bunch of terrible looking colors.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
14 May 2014 10:50 AM
while wait(.3) do
script.Parent.Color = Color3.new(math.random(),math.random(),math.random());
end

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