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 » Scripting Helpers
Home Search
 

Re: Where Do I Put This Script?

Previous Thread :: Next Thread 
Spbunny765 is not online. Spbunny765
Joined: 14 Jun 2010
Total Posts: 155
07 Aug 2013 03:42 PM
I'm trying to make a click button that turns on/off dynamic headlights... so do I put this in the headlights, the button, or both? (Meesa no knowledge of scripting)

p = Car.Headlights.PointLight
script.Parent.ClickDetector.MouseClick:connect(function()
p.Enabled = not p.Enabled
end)
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
07 Aug 2013 03:44 PM
What is "Car"? You need to define car...
Report Abuse
batpower54 is not online. batpower54
Joined: 04 Jun 2011
Total Posts: 1377
07 Aug 2013 03:50 PM
That's easy to make. I could do it for you if you like.
Report Abuse
Spbunny765 is not online. Spbunny765
Joined: 14 Jun 2010
Total Posts: 155
07 Aug 2013 03:54 PM
The car im trying to make is here: http://www.roblox.com/E-B-O-R-U-Builders-Place-place?id=124236887 (im currently editing this place on studio)
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
07 Aug 2013 03:55 PM
You need to put a touch and touch end function in the seat, and make it have a gui apprear, Then make the gui disable and enable headlights.
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
07 Aug 2013 04:35 PM
It's using click detector so it's not gui.
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
07 Aug 2013 04:38 PM
Its when (assuming that the parent is p) is clicked (p is a brick) that the point light enabled will be true.
Report Abuse
Spbunny765 is not online. Spbunny765
Joined: 14 Jun 2010
Total Posts: 155
07 Aug 2013 04:47 PM
Can you guys give me the exact order this goes in? (like I said, i have little knowledge of scripting, bricks are my thing)

This is what I have right now:

> Seat
Inside Seat: (Gui) Carlightgui
Inside gui: (Frame) Car Lights
Inside frame: TextButton
Inside frame: TextLabel

lol, "how quaint." i don't know where to put the scripts.
Report Abuse
Spbunny765 is not online. Spbunny765
Joined: 14 Jun 2010
Total Posts: 155
07 Aug 2013 04:48 PM
from what madness725 said... i guess
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
07 Aug 2013 05:03 PM
WHy don't you just make some brick and put a click detector in it, and make a script like your first one? Much easier.

Don't bother with guis until you know what you're doing.
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