b0bpwns
|
  |
| Joined: 05 Mar 2010 |
| Total Posts: 1733 |
|
|
| 22 Mar 2017 10:56 PM |
while true do script.Parent.SpotLight = Enabled.true wait(1) script.Parent.SpotLight = Enabled.false wait(1) end
So I have in the Parent brick the script, then the SpotLight named SpotLight, I think I am looking over something. I have a similar script to change the material from plastic to neon so I figured it would convert over easily. Help is appreciated. |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2017 10:57 PM |
while true do script.Parent.SpotLight.Enabled = true wait(1) script.Parent.SpotLight.Enabled = false wait(1) end
|
|
|
| Report Abuse |
|
|
| |
|
b0bpwns
|
  |
| Joined: 05 Mar 2010 |
| Total Posts: 1733 |
|
|
| 22 Mar 2017 10:58 PM |
| Yeah bear with a noob like me lol. Always been a builder, but now implementing basic scripts into stuff. |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
| |
|
|
| 22 Mar 2017 11:00 PM |
even more painful to watch how you cant spell nexus
|
|
|
| Report Abuse |
|
|
b0bpwns
|
  |
| Joined: 05 Mar 2010 |
| Total Posts: 1733 |
|
|
| 22 Mar 2017 11:00 PM |
If any one is still lurking here is another issue I have.
while true do wait(0.1) script.Parent.Hum:play() end
I have the noise in the parent brick named "Hum" and the script in the parent brick too. Want it in the brick so it is a proximity / 3d sound. |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 22 Mar 2017 11:00 PM |
| Isn't the first thing you're supposed to learn is properties? |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2017 11:01 PM |
@iJacob the name was taken by a alt so.
|
|
|
| Report Abuse |
|
|
4ef
|
  |
| Joined: 27 May 2013 |
| Total Posts: 5633 |
|
| |
|
Lecturous
|
  |
| Joined: 17 Aug 2013 |
| Total Posts: 1096 |
|
|
| 23 Mar 2017 01:35 AM |
http://wiki.roblox.com/index.php?title=API:Class/Sound/EmitterSize
local hum = script.Parent.Hum hum.EmitterSize = 5 -- change it to whatever you want
while true do wait(0.1) hum:play() end
|
|
|
| Report Abuse |
|
|