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: light flickering

Previous Thread :: Next Thread 
Dreadboy1001 is not online. Dreadboy1001
Joined: 01 Jan 2013
Total Posts: 71
26 Mar 2014 09:20 AM
Helllo guys, im tring to make my own flickering light and I used this script but it didint work. Could you help me please.

Workspace.light.light.PointLight = light

while true do
light.Enabled = true
wait(0.2)
light.Enabled = false
wait(0.2)
light.Enabled = true
wait(0.7)
light.Enabled = false
wait(0.2)
light.Enabled = true
end
Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
26 Mar 2014 09:21 AM
Swap light and the workspace bit around on this:
Workspace.light.light.PointLight = light
So it's like this:
light = Workspace.light.light.PointLight

When life gives you lemons... BURN HIS HOUSE DOWN! >:D
Report Abuse
Xkrew is not online. Xkrew
Joined: 06 Dec 2013
Total Posts: 1044
26 Mar 2014 09:22 AM
light = Workspace.light.light.PointLight

while true do
light.Enabled = true
wait(0.2)
light.Enabled = false
wait(0.2)
light.Enabled = true
wait(0.7)
light.Enabled = false
wait(0.2)
light.Enabled = true
end
Report Abuse
Xkrew is not online. Xkrew
Joined: 06 Dec 2013
Total Posts: 1044
26 Mar 2014 09:23 AM
l = Workspace.light.light.PointLight.Enabled

while true do
l = true
wait(0.2)
l = false
wait(0.2)
l = true
wait(0.7)
l = false
wait(0.2)
l = true
end
Report Abuse
Dreadboy1001 is not online. Dreadboy1001
Joined: 01 Jan 2013
Total Posts: 71
26 Mar 2014 09:26 AM
thanks guys
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
26 Mar 2014 09:27 AM
Can I Seriously make this easier for you

l = Workspace.light.light.PointLight.Enabled

while wait() do
l = true
wait(math.random(0.2/1, 1))
l = false
wait(math.random(0.2/1, 1))
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