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
|
  |
| Joined: 01 Apr 2011 |
| Total Posts: 11679 |
|
|
| 04 Mar 2014 05:48 AM |
b1
Flutterbat be eatin' yo apples. :3 |
|
|
| Report Abuse |
|
|
DarkComa
|
  |
| Joined: 01 Apr 2011 |
| Total Posts: 11679 |
|
|
| 04 Mar 2014 05:55 AM |
b2
Flutterbat be eatin' yo apples. :3 |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
| |
|
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
|
  |
| Joined: 01 Apr 2011 |
| Total Posts: 11679 |
|
|
| 04 Mar 2014 06:29 AM |
b3
Flutterbat be eatin' yo apples. :3 |
|
|
| Report Abuse |
|
|
DarkComa
|
  |
| Joined: 01 Apr 2011 |
| Total Posts: 11679 |
|
|
| 04 Mar 2014 06:38 AM |
b4
Flutterbat be eatin' yo apples. :3 |
|
|
| Report Abuse |
|
|
DarkComa
|
  |
| Joined: 01 Apr 2011 |
| Total Posts: 11679 |
|
|
| 04 Mar 2014 06:59 AM |
b5
Flutterbat be eatin' yo apples. :3 |
|
|
| Report Abuse |
|
|
DarkComa
|
  |
| Joined: 01 Apr 2011 |
| Total Posts: 11679 |
|
|
| 04 Mar 2014 07:13 AM |
b6
Flutterbat be eatin' yo apples. :3 |
|
|
| Report Abuse |
|
|
DarkComa
|
  |
| Joined: 01 Apr 2011 |
| Total Posts: 11679 |
|
|
| 04 Mar 2014 07:29 AM |
b7
Flutterbat be eatin' yo apples. :3 |
|
|
| Report Abuse |
|
|