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 » Scripters
Home Search
 

Re: "Reset money" script failed please help!

Previous Thread :: Next Thread 
Phini is not online. Phini
Joined: 03 Mar 2012
Total Posts: 276
16 Jan 2015 04:36 PM
ok, first off; i can't script..
so i used a gui and some other script and combined them a little int othe gui script and hoped that it would reset the money. But it failed (not surprprising)

here is the script:

function onButtonClicked()
script.Parent.Parent.Parent.Parent.Character.Cash.Value = 0
end

script.Parent.MouseButton1Click:connect(onButtonClicked)

---------------------------
Can anyone help me please?
i want it to makeyour money go back to 0
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
16 Jan 2015 04:37 PM
Localscript in the Gui.

script.Parent.MouseButton1Click:connect(function()
game.Players.LocalPlayer.leaderstats.Cash.Value = 0
end
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
16 Jan 2015 04:38 PM
So soz

script.Parent.MouseButton1Click:connect(function()
game.Players.LocalPlayer.leaderstats.Cash.Value = 0
end)
Report Abuse
Phini is not online. Phini
Joined: 03 Mar 2012
Total Posts: 276
16 Jan 2015 04:41 PM
Didn't work?
did i do something wrong?
i hope i didn't but i deleted the script cause that was a normal script and yo usaid local and putted in your script but it didn't work when i tested it?
Report Abuse
Phini is not online. Phini
Joined: 03 Mar 2012
Total Posts: 276
16 Jan 2015 04:42 PM
woops didn't see the second sorry too xD
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
16 Jan 2015 04:42 PM
Try my next post
Report Abuse
Phini is not online. Phini
Joined: 03 Mar 2012
Total Posts: 276
16 Jan 2015 04:45 PM
Thank You So much, it Worked!


------------POST CLOSED----------
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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