this is what i have so far and it doesnt work
local id = 5546149
game.Players.PlayerAdded:Connect(function(player)
if game:GetService("GamePassService"):PlayerHasPass(player, id) then
player.leaderstats1.xpmulti.Value = 0
print(player.Name .. " has the game pass!")
else
player.leaderstats1.xpmulti.Value = 2
print(player.Name .. " doesn't have the game pass...")
end
end)

11 comments
the script still doesnt change the value of the leaderstat
Does it error? Just reading back over the code, I see it says
leaderstats1.xpmulti, which might be a typo on your part.i put leaderstats1 just so it would not appear on the screen
Oh okay, got you. Does anything print?
the only thing it prints is that i own the gamepass
Hmm, how do you know that it's not changing the value? Number value objects have a default value of 0, and you're setting their value to 0 if the player owns the pass...
oh yeah i swapped them around and nothing changed
Idk man, it's probably something really simple that I'm overlooking.
well thanks for trying
i found out how to make it work i had to add the value in the script
Oh XD of course