local mps = game:GetService("MarketplaceService")
local gamepass_id =
local part = script.Parent
local canGet = true
game.Players.PlayerAdded:Connect(function(plr)
if mps:UserOwnsGamePassAsync(plr.UserId, gamepass_id) then
local function onTouch(otherPart)
local humanoid = otherPart.Parent:FindFirstChild("Humanoid")
if humanoid then
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if player and canGet then
canGet = false
player.leaderstats.Wins.Value = player.leaderstats.Wins.Value + 2
wait(20)
canGet = true
end
end
end
end
part.Touched:Connect(onTouch)
This is script and I want to make people who have the gamepass to get + 2 wins. But I have no idea what to do because it just doesen't work. Mind fixing the script please?

1 comment
Attempts should be your own, don't just get a free - model and expect us to fix it!