local GamePassService = Game:GetService('GamePassService')
local GamePassId = 456456
game.Players.PlayerAdded:connect(function(player)
local stats = Instance.new("IntValue", player)
stats.Name = "leaderstats"
local points = Instance.new("IntValue", stats)
points.Name = "Points"
if GamePassService:PlayerHasPass(player, GamePassId) then
points.Value = points.Value + 50
end
end)
I want this game to only award points ONCE, which is when they buy it. I don't want it to keep giving 50 points every time they join a server. I'm not sure if I should be using Dev Products or gamepasses.

2 comments
they're should be a way to make it with gamepass, try no to use dev profucts
Does :PlayerHasPass() Require the player's UserId?? Maybe that's why. Not sure though