|
| 03 Dec 2012 06:24 PM |
I need the script to move a localscript out of lighting and into my backback and then turn disabled off when I click a textbutton. I tried this
function onclicked() if game.lighting.ShotGunTool.Parent = Lighting then game.lighting.shotguntool.parent = Game.Players.jayboy20010.backpack if game.lighting.ShotGunTool.parent = Game.Players.jayboy20010.backpack then Game.Players.jayboy20010.backpack.ShotGunTool.disabled = false
But it didn't work. I barely know any scripting so I need help. Can anyone fix my script?
LE GOOBY PLS |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Dec 2012 08:55 PM |
Bump now that I'm back online.
LE GOOBY PLS |
|
|
| Report Abuse |
|
|
| |
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 03 Dec 2012 10:06 PM |
function onclicked() if game.Lighting:FindFirstChild("shotguntool") then game.lighting.shotguntool.Parent = Game.Players.jayboy20010.Backpack elseif game.Players.jayboy20010.Backpack:FindFirstChild("shotguntool") then Game.Players.jayboy20010.Backpack.ShotGunTool.disabled = false end end --conection line
Add a connectin line |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2012 10:08 PM |
What's a connectin line?
LE GOOBY PLS |
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 03 Dec 2012 10:22 PM |
| A connection lines the way to make the event trigger so the interpreter knows that when you click the clickdetector(or whatever you're clicking) that's when the program is supposed to run |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2012 10:29 PM |
I need it to trigger when I clicka textbutton called "ShotGunON"
LE GOOBY PLS |
|
|
| Report Abuse |
|
|
| |
|
| |
|