rusty1223
|
  |
| Joined: 08 Jun 2011 |
| Total Posts: 180 |
|
|
| 08 Mar 2014 05:42 PM |
function OnChat() Onchat = "PowerOff" Workspace.Parent.Lightness.SpotLight.Enabled = False end
I know I have done either of the following: Did not gather paren and children right. Function is inncorrect.
Any ideas?? |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 08 Mar 2014 05:43 PM |
no connection line? lol -=Robo=- |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 08 Mar 2014 05:43 PM |
and Workspace.Parent? the parent of Workspace is game. -=Robo=- |
|
|
| Report Abuse |
|
|
rusty1223
|
  |
| Joined: 08 Jun 2011 |
| Total Posts: 180 |
|
| |
|
rusty1223
|
  |
| Joined: 08 Jun 2011 |
| Total Posts: 180 |
|
|
| 08 Mar 2014 05:44 PM |
function OnChat() Onchat = "PowerOff" game.Workspace.Lightness.SpotLight.Enabled = False end |
|
|
| Report Abuse |
|
|
rusty1223
|
  |
| Joined: 08 Jun 2011 |
| Total Posts: 180 |
|
|
| 08 Mar 2014 05:45 PM |
| Now I must figure out this connection line... What? :l (Beginner) |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2014 05:45 PM |
"You're killing me smalls!"
function onChatted(message) if message == "Poweroff" then Workspace.Parent.Lightness.SpotLight.Enabled = false end end
game.Players.LocalPlayer.Chatted:connect(onChatted) |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2014 05:46 PM |
| Yeah, I don't know if you have the right line for the Workspace.Parent.Lightness.SpotLight.Enabled but... |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2014 05:46 PM |
I think what you are thinking is Workspace:findFirstChild("Lightness").SpotLight.Enabled = false |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2014 05:47 PM |
| Plus, you don't capitalize "false" |
|
|
| Report Abuse |
|
|
rusty1223
|
  |
| Joined: 08 Jun 2011 |
| Total Posts: 180 |
|
|
| 08 Mar 2014 05:50 PM |
| Interesting, learn somehting new everyday... |
|
|
| Report Abuse |
|
|