|
| 26 Jan 2017 06:17 PM |
Sorry, I'm new to scripting and i was wondering what i did wrong, I've tried everything!
Its a money giver command, also affected by a game pass if you have it.
amount = 10 -- This variable is the amount of cash we will give each time. timedelay = 30 -- This variable is the amount of seconds inbetween each time the cash is rewarded currencyname = "Cash" -- This is the name of our Currency id = 626428513
while true do wait(timedelay) for i,v in pairs(game.Players:GetPlayers()) do if v:FindFirstChild("leaderstats") and v if game:GetService("MarketplaceService"):PlayerOwnsAsset(v,id) then v.leaderstats[currencyname].Value = v.leaderstats[currencyname].Value + amount * 2 else v.leaderstats[currencyname].Value = v.leaderstats[currencyname].Value + amount
end end end
|
|
|
| Report Abuse |
|
|
OAuth2
|
  |
| Joined: 27 Nov 2016 |
| Total Posts: 751 |
|
|
| 26 Jan 2017 06:19 PM |
if v:FindFirstChild("leaderstats") and v if game:GetService("MarketplaceService"):PlayerOwnsAsset(v,id) then
to
if v:FindFirstChild("leaderstats") and game:GetService("MarketplaceService"):PlayerOwnsAsset(v,id) then |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2017 06:23 PM |
Thanks, thanks so much! it works now
|
|
|
| Report Abuse |
|
|