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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help. I beg you, it's a basic script, but I forgot how.

Previous Thread :: Next Thread 
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
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
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
29 Jul 2013 02:22 PM
So far I've got:

function
Report Abuse
777MrEpic is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
29 Jul 2013 02:23 PM
pretty far
Report Abuse
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
29 Jul 2013 02:24 PM
Thanks.
,
, |
Report Abuse
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
29 Jul 2013 02:25 PM
Oh! I also got

Script.parent.

but there's something in between, and something after.
Report Abuse
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
29 Jul 2013 02:28 PM
Bump for help
Report Abuse
777MrEpic is not online. 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
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
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
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
29 Jul 2013 02:31 PM
do I put it in the light?
Report Abuse
777MrEpic is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
29 Jul 2013 02:33 PM
PUT SCRIPT IN WORKSPACE
caps
Report Abuse
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
29 Jul 2013 02:33 PM
thanks ;)
Report Abuse
777MrEpic is not online. 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
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
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 is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
29 Jul 2013 02:39 PM
idk
i dont know much about pointlights/spotlights
Report Abuse
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
29 Jul 2013 02:40 PM
ok, thanks for the help so far though!
I'll check the roblox scripting wiki again
Report Abuse
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
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 is not online. 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
MyAccountIsTemporary is not online. MyAccountIsTemporary
Joined: 05 Jul 2011
Total Posts: 833
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
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