i want to make a game pass currency so when they bye more cash with robux it add it on ther cash in game so like if i have 250 and i bought 200 cash for 50 robux i would have 450?
If you have a Value Called "Cash" then simply do
Player.leaderstats.Cash.Value = Player.leaderstats.Cash.Value + 200
or
Cash = Player.leaderstats.Cash Amount = 200 Cash.Value = Cash.Value + Amount
Hello WaifulSbae, this is fairly simple. It would look something like this.
local GamePassService = Game:GetService("GamePassService") local GamePassId = 0 -- YOUR GAMEPASS ID local player = game.Players.LocalPlayer if GamePassService:PlayerHasPass(player, GamePassId) then Player.leaderstats.Money.Value = Player.leaderstats.Money.Value + 200 end