When a player owns this game pass they should receive double rewards if they won the game, and a normal reward if they don't own the game pass. This part of the script is located in the main script. Ask for anymore information!
- Script type: script
- Filtering Enabled: Yes
- API services: Yes
- Do I own the gamepass: Yes
Btw the variable reward is 25
local reward = 25
game.Players.PlayerAdded:Connect(function(plr)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 6033886) then
wait(0.5)
plrs[1].leaderstats.Bucks.Value = plrs[1].leaderstats.Bucks.Value + reward*2
else
plrs[1].leaderstats.Bucks.Value = plrs[1].leaderstats.Bucks.Value + reward
end
end)

8 comments
and if i understand its not working?
How are you detecting that the player has won?
The leaderstats are in the script
I see how many players are left in the table
if #plrs == 1 then......
@sbob12345m He's just getting the first player in a table, he's not checking if there is only one person in the game.
Is this an error with this script?
There are no output errors.