|
| 29 Jul 2013 02:21 PM |
If I wanted to make Dynamic lighting Enable if it's parent brick was red, how would I do that?
Also, would it be the same script for blue?
This is a repost |
|
|
| Report Abuse |
|
|
| |
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
| |
|
| |
|
|
| 29 Jul 2013 02:25 PM |
Oh! I also got
Script.parent.
but there's something in between, and something after. |
|
|
| Report Abuse |
|
|
| |
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
|
| 29 Jul 2013 02:29 PM |
function light(color,parent) lit=Instance.new("PointLight",parent) lit.Color = color-- may be Color3.new end --------------------- light(Black,game.workspace.Brick) |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 02:31 PM |
thanks so much 4 ur help! i'll get back to u if it works :)
(sorry 4 grammar. on a rush) |
|
|
| Report Abuse |
|
|
| |
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
|
| 29 Jul 2013 02:33 PM |
PUT SCRIPT IN WORKSPACE caps |
|
|
| Report Abuse |
|
|
| |
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
|
| 29 Jul 2013 02:36 PM |
Forgot You might need to insert a BrickColor Value in the script and remove the color part in function(color,parent) name the value Color_VALUE and replace lit.Color = color to lit.BrickColor = script.Color_VALUE |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 02:37 PM |
if this is workspace, is there any way that I can put this script into a 'SpotLight' and make it the color of the brick that the spotlight is inside of? |
|
|
| Report Abuse |
|
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
|
| 29 Jul 2013 02:39 PM |
idk i dont know much about pointlights/spotlights |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 02:40 PM |
ok, thanks for the help so far though! I'll check the roblox scripting wiki again |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 02:48 PM |
Nope. Nope, too hard. Only found out that it's a Color3, and that I can do function(Color3.r d g) something like that. |
|
|
| Report Abuse |
|
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
|
| 29 Jul 2013 02:49 PM |
Put a Color3 Value instead of brickColor Value ------------------------------------ Soon, I will my 777Creator will help with all of this. |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2013 02:51 PM |
Thanks, you've been a big help. Do you just hang around the forums and help people with scripting? |
|
|
| Report Abuse |
|
|