JumpYScriptsz

Random text generator

Jul 2nd, 2021 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.07 KB | None | 0 0
  1. -- =============================================== --
  2.         -- || RANDOM TEXTS GENERATOR || --
  3. -- =============================================== --
  4.  
  5. -- made by radicore15742, AKA: jumpYScriptsz
  6. -- feel free to change the variables below
  7. local dd = script.Parent
  8. script.Parent.Text = ""
  9. wait(3) -- 3s to load
  10.  
  11. a = 0.1 -- transparency change
  12.  
  13. StatColour = Color3.fromRGB(116, 255, 121) -- stats / how many texts there are colour
  14. revertColour = Color3.fromRGB(255, 255, 255) -- revert change colour back to origional state (white text)
  15.  
  16. while true do
  17.     local texts = {"texts", "stats"} -- to add more put repeat the comma and quotations and add a word
  18.     local text = math.random(1, #texts)
  19.     local chosenText = texts[text]
  20.     local devide = (1 / #texts) * 100
  21.     script.Parent.Text = chosenText
  22.     if chosenText == "texts" then
  23.         script.Parent.Text = "Did you know that there are "..#texts.." texts?"
  24.     elseif chosenText == "stats" then
  25.         script.Parent.Text = "Did you know that there is a "..devide.."% chance of your text being chosen!"
  26.     end
  27.    
  28.     -- below took me ages, i could of simplified this but for some reason it didnt work, so here it is
  29.    
  30.     wait(1)
  31.     dd.TextTransparency = 1
  32.     wait(a)
  33.     dd.TextTransparency = 0.95
  34.     wait(a)
  35.     dd.TextTransparency = 0.90
  36.     wait(a)
  37.     dd.TextTransparency = 0.80
  38.     wait(a)
  39.     dd.TextTransparency = 0.75
  40.     wait(a)
  41.     dd.TextTransparency = 0.70
  42.     wait(a)
  43.     dd.TextTransparency = 0.65
  44.     wait(a)
  45.     dd.TextTransparency = 0.60
  46.     wait(a)
  47.     dd.TextTransparency = 0.55
  48.     wait(a)
  49.     dd.TextTransparency = 0.50
  50.     wait(a)
  51.     dd.TextTransparency = 0.45
  52.     wait(a)
  53.     dd.TextTransparency = 0.40
  54.     wait(a)
  55.     dd.TextTransparency = 0.35
  56.     wait(a)
  57.     dd.TextTransparency = 0.30
  58.     wait(a)
  59.     dd.TextTransparency = 0.25
  60.     wait(a)
  61.     dd.TextTransparency = 0.20
  62.     wait(a)
  63.     dd.TextTransparency = 0.15
  64.     wait(a)
  65.     dd.TextTransparency = 0.10
  66.     wait(a)
  67.     dd.TextTransparency = 0.05
  68.     wait(a)
  69.     dd.TextTransparency = 0
  70.     wait(4)
  71.     wait(a)
  72.     dd.TextTransparency = 0.05
  73.     wait(a)
  74.     dd.TextTransparency = 0.10
  75.     wait(a)
  76.     dd.TextTransparency = 0.15
  77.     wait(a)
  78.     dd.TextTransparency = 0.20
  79.     wait(a)
  80.     dd.TextTransparency = 0.25
  81.     wait(a)
  82.     dd.TextTransparency = 0.30
  83.     wait(a)
  84.     dd.TextTransparency = 0.35
  85.     wait(a)
  86.     dd.TextTransparency = 0.40
  87.     wait(a)
  88.     dd.TextTransparency = 0.45
  89.     wait(a)
  90.     dd.TextTransparency = 0.50
  91.     wait(a)
  92.     dd.TextTransparency = 0.55
  93.     wait(a)
  94.     dd.TextTransparency = 0.60
  95.     wait(a)
  96.     dd.TextTransparency = 0.65
  97.     wait(a)
  98.     dd.TextTransparency = 0.70
  99.     wait(a)
  100.     dd.TextTransparency = 0.75
  101.     wait(a)
  102.     dd.TextTransparency = 0.80
  103.     wait(a)
  104.     dd.TextTransparency = 0.85
  105.     wait(a)
  106.     dd.TextTransparency = 0.90
  107.     wait(a)
  108.     dd.TextTransparency = 0.95
  109.     wait(a)
  110.     dd.TextTransparency = 1
  111.     wait(1)
  112.     wait(a)
  113.     script.Parent.TextColor3 = Color3.fromRGB(255, 255, 255)
  114.     script.Parent.Font = "Cartoon"
  115.    
  116.     -- for my benefit, you can delete this below
  117.    
  118.     if script.Parent.TextColor3 == Color3.fromRGB(255, 255, 255) then
  119.         script.Parent.TextColor3 = Color3.fromRGB(255, 255, 255)
  120.     else
  121.         print("randWords ERROR: could not change RandWords back to origional colour or font")
  122.     end
  123.    
  124.     -- up to this line
  125.    
  126. end
Add Comment
Please, Sign In to add comment