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: I need help making a script

Previous Thread :: Next Thread 
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
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
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
03 Dec 2012 06:34 PM
BUmp.

LE GOOBY PLS
Report Abuse
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
03 Dec 2012 08:55 PM
Bump now that I'm back online.

LE GOOBY PLS
Report Abuse
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
03 Dec 2012 09:01 PM
Bump.

LE GOOBY PLS
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
03 Dec 2012 10:02 PM
0utput plz!!!
Report Abuse
miz656 is not online. 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
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
03 Dec 2012 10:08 PM
What's a connectin line?

LE GOOBY PLS
Report Abuse
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
03 Dec 2012 10:19 PM
Bump.

LE GOOBY PLS
Report Abuse
miz656 is not online. 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
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
03 Dec 2012 10:29 PM
I need it to trigger when I clicka textbutton called "ShotGunON"

LE GOOBY PLS
Report Abuse
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
03 Dec 2012 10:35 PM
BUmp.

LE GOOBY PLS
Report Abuse
jayboy20010 is not online. jayboy20010
Joined: 18 May 2010
Total Posts: 3728
03 Dec 2012 11:40 PM
Bump.

LE GOOBY PLS
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