Advertisement
CAT_SUS

rn.lua

Jul 20th, 2023 (edited)
7,026
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.39 KB | None | 0 0
  1. --[[
  2.     Code By CAT_SUS
  3.     code style Sythivo
  4. ]]
  5.  
  6. local RandomString : {NewUser:FunctionalTest | string} = {}
  7.  
  8. local coems : {string|any} = {
  9.     "index.json",
  10.     "main.py",
  11.     "data.php",
  12.     "index.js",
  13.     "main.lua",
  14.     "indexhtml",
  15.     "sty.css",
  16.     "main.c",
  17.     "main.c#",
  18.     'main.c+',
  19.     "main.c++",
  20.     "index.javascript",
  21.     "Bedol_Hub.md",
  22.     "Read.md",
  23.     "data.json",
  24.     "folder",
  25.     "file",
  26.     "Electron.exe",
  27.     "Fluxus.exe",
  28.     "Krnl.exe",
  29.     "synape.exe",
  30.     "unknow",
  31.     "data.xml",
  32.     ".net",
  33.     ".com",
  34.     ".app",
  35.     ".lol",
  36.     ".pro",
  37.     "XenonHub.pro",
  38.     "MaruHub",
  39.     "PH_Hub",
  40.     "TTJY",
  41.     "X2ph",
  42.     "KTollt",
  43.     "SayHI",
  44.     "Ruby_Hub",
  45.     "TableHub",
  46.     "BedolHub",
  47.     "MukuroHub",
  48.     "RbxScript",
  49.     "Model.rbxm",
  50.     "Game.rbxl",
  51.     "X2Switch",
  52.     "Kavo.lua",
  53.     "Discord.js",
  54.     "repilt.co",
  55.     "www.co.th"
  56. }
  57.  
  58. function RandomString:NewUser<T...>():(string|any)
  59.     local Players : {Player} = game:GetService('Players'):GetPlayers()
  60.     local target : Player = Players[math.random(1,#Players)]
  61.     local v : Player = target
  62.  
  63.     local geted = math.random(1,10)
  64.     if geted <= 3 then
  65.         local ds = math.random(1,2)
  66.         local tage = ""
  67.         if ds == 1 then
  68.             tage = v.Name
  69.         else
  70.             tage = v.DisplayName
  71.         end
  72.         local map = math.random(1,3)
  73.         if map == 1 then
  74.             tage = tage:upper()
  75.         elseif map == 2 then
  76.             tage = tage:lower()
  77.         end
  78.  
  79.         return tostring(tage)
  80.     end
  81.  
  82.     return tostring(coems[math.random(1,#coems)])
  83. end
  84.  
  85. return RandomString;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement