function PointsService.KnitInit(P)local N=Random.new()P.Client.GiveMePoints:Connect(function(X)local d=N:NextInteger(0,10)P:AddPoints(X,d)print("\071\097\118\101 "..(X.Name..(" "..(d.." \112\111\105\110\116\115"))))end);(game:GetService("\080\108\097\121\101\114\115")).PlayerRemoving:Connect(function(N)P.PointsPerPlayer[N]=nil print("\067\108\101\097\110\101\100 \117\112 "..(N.Name.."\'\115 \100\097\116\097 \098\101\099\097\117\115\101 \116\104\101\121 \108\101\102\116\033"))end)end return PointsService
-- Initialize
function PointsService:KnitInit()
	local rng = Random.new()

	-- Give player random amount of points:
	self.Client.GiveMePoints:Connect(function(player)
		local points = rng:NextInteger(0, 10)
		self:AddPoints(player, points)
		print("Gave " .. player.Name .. " " .. points .. " points")
	end)

	-- Clean up data when player leaves:
	game:GetService("Players").PlayerRemoving:Connect(function(player)
		self.PointsPerPlayer[player] = nil
		print("Cleaned up " .. player.Name .. "'s data because they left!")
	end)
end

return PointsService
