Help with Leaderstats Command

I’m trying to make a command that adds a player’s “Points” by 1 every time it’s ran. I’m not getting any errors but it’s not working. Any help is appreciated.

	
plr.Chatted:connect(function(msg)

local args = msg:split(" ")
if args[1] == "!p" then
	if args[2] == "add" then
		if plr:GetRankInGroup(5555641) >= 199 then
		local function get_player_from_partial(s)
    s = s:lower() 
    for _, player in ipairs(game.Players:GetPlayers()) do
        if s == player.Name:lower():sub(1, #s) then
            return player
        end
    end
    return nil
end
local target = get_player_from_partial(args[3])

-- Main Part Right Here 
target:WaitForChild("leaderstats")
target.leaderstats:WaitForChild("Points")
local points = target.leaderstats.Points.Value
if target ~= nil then
	points = points+1
end
		end
	end
end
end)

end)```

You’re only incrementing the variable, which is not connected to the actual value, you need to do this:

target.leaderstats.Points.Value = target.leaderstats.Points.Value + 1