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