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: Roblox ClickDetector Shop Problem

Previous Thread :: Next Thread 
singleroblox is not online. singleroblox
Joined: 04 Apr 2012
Total Posts: 450
31 May 2014 12:16 PM
It's not working for some reason.
any ideas in what im doing wrong?

function buy(Playerwhobought)

local plr = game.Players:GetPlayerFromCharacter(Playerwhobought.Parent)


cash = plr.leaderstats["Points"] --- change the word "Cash" to what your money thing is called

if cash.Value < 0 then return end --- change numbers to how much it cost

if cash.Value >= 0 then

b = game.ServerStorage.Resources.GravityCoil:clone()

b.Parent = plr.Backpack

cash.Value = cash.Value - 0

end
end

script.Parent.MouseClick:connect(buy)
Report Abuse
singleroblox is not online. singleroblox
Joined: 04 Apr 2012
Total Posts: 450
31 May 2014 12:25 PM
Somebody?
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