|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|