im using gamepass for this game when someone kill the dummy, it gave you double the reward
local hum = script.Parent:WaitForChild("Humanoid")
game.Players.PlayerAdded:Connect(function(player)
local wew = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 10995771)
hum.Died:Connect(function()
local kepintaran = player.leaderstats.Kepintaran.Value
if wew then
game.ServerStorage.Give:Fire(20*(kepintaran+1)*2)
else
game.ServerStorage.Give:Fire(20*(kepintaran+1))
end
end)
end)
and when the dummy was respawned . I didnt got the double reward. Please help

3 comments
Is it because you didn't own the gamepass?
he should
if you make a gamepass it makes you own it automatically