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: Money

Previous Thread :: Next Thread 
millymanks is not online. millymanks
Joined: 26 Jun 2014
Total Posts: 413
03 Jun 2015 05:16 PM



I made a script where when you click the imagebutton your money "VC" gets subtracted but it won't work.

plr=game.Players.LocalPlayer
d=true
script.Parent.MouseButton1Click:connect(function()
if d and plr.leaderstats:findFirstChild("VC") and plr.leaderstats.VC.Value>=script.Parent.price.Value then
d=false
plr.leaderstats.VC.Value=plr.leaderstats.VC.Value-script.Parent.price.Value
local sig=Instance.new("NumberValue")
sig.Parent=plr.SignatureSkills
sig.Name="AnkleBreaker"
script.Parent:Destroy()
d=true
end
end)





Report Abuse
ohno1112 is not online. ohno1112
Joined: 23 Mar 2013
Total Posts: 833
03 Jun 2015 05:20 PM
please learn proper spacing and indenting conventions before posting scripts, it makes it that much more readable and easier to understand.
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