I'm trying to make a script where if you touch a region with Region3, it will give you 1 point ever second as long as you stay in the region. But I'm not sure how to code the giving points on the leaderboard part.

local RegionPart = game.Workspace.Regioner
local pos1 = RegionPart.Position - (RegionPart.Size / 2)
local pos2 = RegionPart.Position + (RegionPart.Size / 2)
local region = Region3.new(pos1, pos2)

while true do
	wait()
	local partsInRegion = workspace:FindPartsInRegion3(region, nil, math.huge)

	for i, part in pairs(partsInRegion) do
		if part.Parent:FindFirstChild("Humanoid") ~= nil then


		
			print("Player found: ".. part.Parent.Name)
			local char = part.Parent.Name
	
		end
	end
end