Does anyone know?
amnt = 1 --how much you get for it
return function(winner)
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if (h~=nil) then
local thisplr = game.Players:findFirstChild(h.Parent.Name)
if (thisplr~=nil) then
local stats = thisplr:findFirstChild("leaderstats")
if (stats~=nil) then
local score = stats:findFirstChild("Wins")
if (score~=nil) then
score.Value = score.Value + amnt
end
end
end
end
end
end

1 comment
is it a local script? FE makes local scripts unable to change values