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 |
|
|
|
| 10 May 2013 03:58 PM |
| You need it in a PlayerGui...if it's a GUI. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 09 Jan 2010 |
| Total Posts: 3385 |
|
| |
|
|
| 10 May 2013 04:07 PM |
| Can you explain what you're doing an or what you're wanting to do? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 10 May 2013 04:27 PM |
I don't see why it wouldn't work, what does the output say?
|
|
|
| Report Abuse |
|
|
turkish55
|
  |
| Joined: 09 Jan 2010 |
| Total Posts: 3385 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|