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
|