Advertisement
BobMe

Youtube subscriber count predictor

Oct 2nd, 2019
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. -- This is a script to calculate your youtube channel growth. My channel is Poin Test, and I'm growing decently fast for a channel that is really really smol.
  2. -- I became a bit curious to see where I'd be in a couple of months, so I wrote this.
  3.  
  4. -- I put alot of effort into my videos and edit them to the best of my ability, because of this, my channel growth rate is a bit higher than many others. So I asked a few friends of mine for their channel growth rates.
  5.  
  6. -- One friend of mine currently has 668 subscribers, which is way more then I have and I'm pretty happy for him. He streams on ps4 and doesn't really commentate much which effects his growth. I calculated his growth,
  7. -- and his value seems to be 1.005
  8.  
  9. -- For me, my channel is growing very fast, currently about 3 subscribers a month and right now I have 37 subscribers. Because of my small amount of subscribers and large growth rate, my channel growth value is
  10. -- substantually higher than my freind's, which after a bit of analizing, it turned out to be 1.082 which is %1656 more than my friend's growth rate.
  11.  
  12. --If you don't know how to calculate your own channel's growth rate, just give a fair estimate. Or use the values listed below!
  13.  
  14. --[[ CHANNEL GROWTH CHART :
  15. (high video effort is standard youtuber effort, like pewdiepie or reddit reading channels [like emkay])
  16. (standard video effort is clipping videos together to have all content be introduced in a nice and steady stream OR with great commentary)
  17. (low video effort is low commentary or little to no video editing what-so-ever)
  18.  
  19. (EFFORT COUNTS AS CONTENT TOO, HIGH VIDEO EFFORT + TERRIBLE CONTENT = STANDARD)
  20.  
  21. fun fact: this script showcases why it's so hard to get a start on youtube
  22. another fun fact: This script uses exponential math, and will sometimes be VERY inaccurate. It uses math, not the youtube algorithm.
  23.  
  24.  
  25. (about 10 to 80 subscribers)
  26. ----------------------------------
  27. Small amount of subscribers, high video effort: 1.1
  28. Small amount of subscribers, standard video effort: 1.06
  29. Small amount of subscribers, low video effort: 1.02
  30.  
  31. (about 81 to 2850 subscribers)
  32. ----------------------------------
  33. Decent amount of subscribers, high video effort: 1.084
  34. Decent amount of subscribers, standard video effort: 1.052
  35. Decent amount of subscribers, low video effort: 1.008 < look at the drop lmao
  36.  
  37. (about 2851 to 10000 subscribers)
  38. ----------------------------------
  39. Great amount of subscribers, high video effort: 1.032
  40. Great amount of subscribers, standard video effort: 1.012
  41. Great amount of subscribers, low video effort: 1.009
  42.  
  43. (passed 100000 subscribers all three categories tends to even out due to youtube recomendations; you'll have to find your own growth value)
  44. _______________________________________________________________________________________________________________________________________________]]
  45.  
  46. GROWTH_VALUE = 1.1 -- larger than 1 gains subscribers, lower than 1 loses subscribers.
  47. CURRENT_SUBSCRIBERS = 37 -- must be an integer (whole number)
  48. MONTHS = 37 -- amount of months to calculate
  49.  
  50. -- DONT MODIFY ANYTHING BELOW THIS LINE
  51.  
  52. -- FUNCTIONS
  53. function removedec(number)
  54. kek = number
  55. local strnum = tostring(number)
  56. for i=1,#strnum do
  57. if string.sub(strnum,i,i) == "." and string.sub(strnum,i+1,i+1) == "0" and string.sub(strnum,i+2,i+2) == "" then
  58. kek = tonumber(string.sub(strnum,1,i-1))
  59. end
  60. end
  61. return kek
  62. end
  63.  
  64. function round(number)
  65. kek = nil
  66. local strnum = tostring(number)
  67. for i=1,#strnum do
  68. if string.sub(strnum,i,i) == "." then
  69. kek = tonumber(string.sub(strnum,i+1,i+1))
  70. kek2 = tonumber(string.sub(strnum,1,i-1))
  71. end
  72. end
  73. if kek ~= nil then
  74. if kek >= 5 then
  75. kek2 = kek2 + 1
  76. else
  77. kek2 = kek2
  78. end
  79. end
  80. if kek2 ~= nil then
  81. return kek2
  82. else
  83. return number
  84. end
  85. end
  86.  
  87. function returnmonth(x)
  88. local months = {"January","February","March","April","May","June","July","August","September","October","November","December"}
  89. return months[x]
  90. end
  91.  
  92. --FUNCTIONALITY
  93.  
  94. local current_month = tonumber(os.date("%m"))-1 -- THIS WILL NOT WORK ON ROBLOX, CHANGE THIS FOR REPLICATION
  95. local current_year = tonumber(os.date("%Y"))
  96. local current_subs = CURRENT_SUBSCRIBERS
  97.  
  98.  
  99. for i=1,MONTHS do
  100. current_month = current_month + 1
  101. if current_month == 13 then
  102. current_year = current_year + 1
  103. current_month = 1
  104. end
  105. CURRENT_SUBSCRIBERS = CURRENT_SUBSCRIBERS*GROWTH_VALUE
  106. current_subs = round(CURRENT_SUBSCRIBERS)
  107. print(returnmonth(current_month)..", "..current_year.." | Subscriber count: "..current_subs)
  108. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement