local debounce = false
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players.LocalPlayer.UserId,11275874) then
script.Parent.Activated:Connect()
if not debounce then
debounce = true
local plr = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
plr.leaderstats.Throws.Value = plr.leaderstats.Throws.Value + 100
wait(0.3)
debounce = false
else
script.Parent.Activated:Connect(function()
if not debounce then
debounce = true
local plr = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
plr.leaderstats.Throws.Value = plr.leaderstats.Throws.Value + 50
wait(0.3)
debounce = false
end
end)
end
end
the error says attempt to index nil with 'leaderstats'

2 comments
what line is the error?
Should probably check if you named leaderstats right in your stats script or if you got the wrong parent