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: Why wont this script work?

Previous Thread :: Next Thread 
RabbitRobot is not online. RabbitRobot
Joined: 09 Apr 2011
Total Posts: 173
26 Mar 2012 04:52 AM
function onClick()
weapon = game.Lighting.DeathBlade:clone()
weapon.Parent = player.Backpack
end
script.Parent.MouseButton1Down:connect(onClick)


__

It's for a Shop GUI. What am I doing wrong?
Report Abuse
RabbitRobot is not online. RabbitRobot
Joined: 09 Apr 2011
Total Posts: 173
26 Mar 2012 04:53 AM
Oh, also the weapon in Lighting is called "DeathBlade" xD, so no error there.
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
26 Mar 2012 04:58 AM
weapon.Parent = script.Parent.Parent.Parent.Parent.Backpack
Report Abuse
RabbitRobot is not online. RabbitRobot
Joined: 09 Apr 2011
Total Posts: 173
26 Mar 2012 05:13 AM
Still wont work.
Report Abuse
RabbitRobot is not online. RabbitRobot
Joined: 09 Apr 2011
Total Posts: 173
26 Mar 2012 05:18 AM
Okay, it's seems to work now, lol. Thanks for your help!
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
26 Mar 2012 05:37 AM
sure,
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