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: Please help

Previous Thread :: Next Thread 
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
27 Jul 2013 02:03 AM
Cash = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Points

function onClick()
if Cash.Value >= 50 then
Cash.Value = Cash.Value - 50
local RockLaunch = game.Lighting.Claymore:clone()
RockLaunch.Parent = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Backpack
RockLaunch.Handle.Anchored = false
script.Parent.Parent.Button:destroy()
end
end

script.Parent.MouseButton1Click:connect(onClick)



Were it says "script.Parent.Parent.Button:destroy()" It makes the whole think not work. I have removed it then the script the works again, How do I fix that?
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
27 Jul 2013 02:04 AM
I'm not sure, I'm pretty sure it's :Destroy() with a capital D.
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
27 Jul 2013 02:16 AM
Oh
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
27 Jul 2013 02:17 AM
Works, Thanks lol
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