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: Light Script

Previous Thread :: Next Thread 
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 05:45 AM
Hi, I'm trying to make a script that after 5 seconds my lamp stops working.
Here is what I've tried so far, (bare in mind I'm new to scripting).

light = game.Players:FindFirstChild("Humanoid")
wait(5)
light.Parent.Parent.Backpack["Glow Lamp"].Handle.PointLight.Enabled = false

Flutterbat be eatin' yo apples. :3
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 05:48 AM
b1

Flutterbat be eatin' yo apples. :3
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 05:55 AM
b2

Flutterbat be eatin' yo apples. :3
Report Abuse
M39a9am3R is not online. M39a9am3R
Joined: 10 Nov 2012
Total Posts: 1933
04 Mar 2014 06:06 AM
while wait() do
repeat wait() until script.Parent.Parent:FindFirstChild("Humanoid")
script.Parent.Handle.PointLight.Enabled = true
wait(5)
script.Parent.Handle.PointLight.Enabled = false
repeat wait() until script.Parent.Parent.Name == "Backpack"
end
--Just put this script in the tool. Too lazy to get the equipped event for this...
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 06:13 AM
Thanks, but it won't work! D:

Flutterbat be eatin' yo apples. :3
Report Abuse
TexasTech717 is not online. TexasTech717
Joined: 24 Apr 2012
Total Posts: 1129
04 Mar 2014 06:15 AM
Is it a local script?
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 06:18 AM
Texas, I've tried it as a local script but it still doesn't work. :/

Flutterbat be eatin' yo apples. :3
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 06:29 AM
b3

Flutterbat be eatin' yo apples. :3
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 06:38 AM
b4

Flutterbat be eatin' yo apples. :3
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 06:59 AM
b5

Flutterbat be eatin' yo apples. :3
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 07:13 AM
b6

Flutterbat be eatin' yo apples. :3
Report Abuse
DarkComa is not online. DarkComa
Joined: 01 Apr 2011
Total Posts: 11679
04 Mar 2014 07:29 AM
b7

Flutterbat be eatin' yo apples. :3
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