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: PointLight Enabled

Previous Thread :: Next Thread 
rusty1223 is not online. 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 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
08 Mar 2014 05:43 PM
no connection line? lol
-=Robo=-
Report Abuse
robocu3 is not online. 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 is not online. rusty1223
Joined: 08 Jun 2011
Total Posts: 180
08 Mar 2014 05:43 PM
Yeah I know, i'm sad :l.
Report Abuse
rusty1223 is not online. 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 is not online. 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
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
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
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
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
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
08 Mar 2014 05:46 PM
I think what you are thinking is
Workspace:findFirstChild("Lightness").SpotLight.Enabled = false
Report Abuse
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
08 Mar 2014 05:47 PM
Plus, you don't capitalize "false"
Report Abuse
rusty1223 is not online. rusty1223
Joined: 08 Jun 2011
Total Posts: 180
08 Mar 2014 05:50 PM
Interesting, learn somehting new everyday...
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