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: Everthing seems ok Why this script not working?

Previous Thread :: Next Thread 
turkish55 is not online. turkish55
Joined: 09 Jan 2010
Total Posts: 3385
10 May 2013 03:56 PM
function color()

script.Parent.Parent.Parent.Parent.Character["light"].Handle.SpotLight.Enabled = false
end

script.Parent.MouseButton1Down:connect(color)


It must be unenable the Spotlight inside the hat named light.
Also its a gui button. Why its not work?
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
10 May 2013 03:58 PM
You need it in a PlayerGui...if it's a GUI.
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
10 May 2013 03:58 PM
Actually I think it has to do with Adornee, but what are you trying to do exactly?
Report Abuse
turkish55 is not online. turkish55
Joined: 09 Jan 2010
Total Posts: 3385
10 May 2013 04:00 PM
ಠnಠ

Im not that noob. Its already there.
Whats wrong?
Report Abuse
turkish55 is not online. turkish55
Joined: 09 Jan 2010
Total Posts: 3385
10 May 2013 04:06 PM
Anybody help?
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
10 May 2013 04:07 PM
Can you explain what you're doing an or what you're wanting to do?
Report Abuse
turkish55 is not online. turkish55
Joined: 09 Jan 2010
Total Posts: 3385
10 May 2013 04:22 PM
I made a hat giver;
Hats name is "light"
It gives you headlamp hat with Spotlight inside.
Im making a button gui that has this script inside.
I want to unenable the spotlight's enable setting.
after that, ill make the "Enabled = true" of this script and another button that enables the spotlight.
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
10 May 2013 04:27 PM
I don't see why it wouldn't work, what does the output say?

Report Abuse
turkish55 is not online. turkish55
Joined: 09 Jan 2010
Total Posts: 3385
10 May 2013 04:30 PM
What output?
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
10 May 2013 04:38 PM
View>Output Window

Run the script then tell me what it says, Output finds errors in scripts.
Report Abuse
turkish55 is not online. turkish55
Joined: 09 Jan 2010
Total Posts: 3385
10 May 2013 04:39 PM
YEAHH!!! FIXED IT!

Removed the [ and " 's just the light and it worked.
Report Abuse
turkish55 is not online. turkish55
Joined: 09 Jan 2010
Total Posts: 3385
10 May 2013 04:41 PM
function color()

script.Parent.Parent.Parent.Parent.Character.light.Handle.SpotLight.Enabled = false
end

script.Parent.MouseButton1Down:connect(color)


lol fixed. Also i cant see any new thing in the outputs...

its fixed. thanks :I
Report Abuse
turkish55 is not online. turkish55
Joined: 09 Jan 2010
Total Posts: 3385
10 May 2013 04:44 PM
BUT WAIT....

did you good at gui scripts?

can you make a button that makes false and true?

click true and click false then it goes.

know that script?
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
10 May 2013 04:47 PM
Yes I can, I script GUI's such as Menu's more than I script bricks. I love GUI's and I am also working on a new game engine for TheFurryFox and trying to make a simpler system.
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