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: Turning a light on and off? Script not working.

Previous Thread :: Next Thread 
b0bpwns is not online. 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
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
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
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
22 Mar 2017 10:57 PM
Just painful


Report Abuse
b0bpwns is not online. 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 is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
22 Mar 2017 10:58 PM
a little bit
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
22 Mar 2017 10:59 PM
Not even a little.


Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
22 Mar 2017 11:00 PM
even more painful to watch how you cant spell nexus


Report Abuse
b0bpwns is not online. 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 is online. 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
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
22 Mar 2017 11:01 PM
@iJacob the name was taken by a alt so.


Report Abuse
4ef is not online. 4ef
Joined: 27 May 2013
Total Posts: 5633
22 Mar 2017 11:37 PM
good try though


Report Abuse
Lecturous is not online. 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
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