I've put it into the script where the cash is created too like someone suggested a while back, but it keeps working and not working (mostly not working) and i'm confused on why this is.
Can someone help?
I have multiple badges/gamepasses that I need this for and I also don't know how to put it all in one single function could someone help out with that too?
Gamepass/Badge script
game.Players.PlayerAdded:connect(function(plr)
local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(plr.Name)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,540679791) then
print(plr.Name .. " owns the VIP")
if cashmoney then
wait(1)
cashmoney.Value = cashmoney.Value + 10000
end
else
print(plr.Name .. " doesn't own VIP")
end
end)
Thanks for your time
-Species

1 comment
Is this in a local script, or a server script, if so what service does it reside in?