Advertisement
KrYn0MoRe

robax generator script

Jul 26th, 2020 (edited)
2,352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.50 KB | None | 0 0
  1. Part0 = Instance.new("Part")
  2. SurfaceGui1 = Instance.new("SurfaceGui")
  3. TextBox2 = Instance.new("TextBox")
  4. ClickDetector3 = Instance.new("ClickDetector")
  5. Part0.Parent = script
  6. Part0.CFrame = CFrame.new(-7.17999983, 4.50000381, -24.4399986, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  7. Part0.Position = Vector3.new(-7.17999983, 4.50000381, -24.4399986)
  8. Part0.Color = Color3.new(0, 1, 0)
  9. Part0.Size = Vector3.new(16, 9, 2)
  10. Part0.Anchored = true
  11. Part0.BottomSurface = Enum.SurfaceType.Smooth
  12. Part0.BrickColor = BrickColor.new("Lime green")
  13. Part0.Locked = true
  14. Part0.TopSurface = Enum.SurfaceType.Smooth
  15. Part0.brickColor = BrickColor.new("Lime green")
  16. SurfaceGui1.Parent = Part0
  17. SurfaceGui1.LightInfluence = 1
  18. SurfaceGui1.Face = Enum.NormalId.Back
  19. SurfaceGui1.ClipsDescendants = true
  20. SurfaceGui1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21. TextBox2.Parent = SurfaceGui1
  22. TextBox2.Size = UDim2.new(1, 0, 1, 0)
  23. TextBox2.BackgroundColor = BrickColor.new("Institutional white")
  24. TextBox2.BackgroundColor3 = Color3.new(1, 1, 1)
  25. TextBox2.BackgroundTransparency = 1
  26. TextBox2.Font = Enum.Font.SourceSans
  27. TextBox2.FontSize = Enum.FontSize.Size14
  28. TextBox2.Text = "CLICK HERE FOR FREE ROBUX!!"
  29. TextBox2.TextColor = BrickColor.new("Really black")
  30. TextBox2.TextColor3 = Color3.new(0, 0, 0)
  31. TextBox2.TextScaled = true
  32. TextBox2.TextSize = 14
  33. TextBox2.TextWrap = true
  34. TextBox2.TextWrapped = true
  35. ClickDetector3.Parent = Part0
  36.  
  37. local ocf = Part0.CFrame
  38.  
  39. spawn(function()
  40.     game:GetService("RunService").Stepped:Connect(function()
  41.         Part0.Locked = true
  42.         Part0.Anchored = true
  43.         Part0.CFrame = ocf
  44.     end)
  45. end)
  46.  
  47. local using = false
  48. local mlg = false
  49.  
  50. function AddCommas(StringNumber)
  51.     StringNumber = tostring(StringNumber)
  52.     local FormattedNumber = ''
  53.     repeat
  54.         if #StringNumber >= 4 then
  55.             FormattedNumber = ","..string.sub(StringNumber,#StringNumber-2,#StringNumber)..FormattedNumber
  56.         end
  57.         StringNumber = string.sub(StringNumber,1,#StringNumber-3)
  58.     until #StringNumber < 4
  59.     return (StringNumber..FormattedNumber)        
  60. end
  61.  
  62. local theme = Instance.new("Sound")
  63. theme.SoundId = 'rbxassetid://517742877'
  64. theme.Volume = 5
  65. theme.Looped = false
  66. theme.Parent = Part0
  67. theme:Play()
  68.  
  69. local songs = {517742877,610931541,540228852,1246460167}
  70.  
  71. local sid = math.random(1,#songs)
  72.  
  73. spawn(function()
  74.     while true do
  75.         wait()
  76.         theme.SoundId = 'rbxassetid://' .. tostring(songs[sid])
  77.         theme:Play()
  78.         repeat wait(1) until not theme.IsPlaying
  79.         sid = sid + 1
  80.         if sid > #songs then
  81.             sid = 1
  82.         end
  83.     end
  84. end)
  85.  
  86. function generate(p)
  87.     local n = tostring(math.random(100000,10000000))
  88.     local _mlg
  89.     if string.match(n,'420') or string.match(n,'69') then
  90.         _mlg = true
  91.     end
  92.     n = AddCommas(math.random(100000,10000000))
  93.     TextBox2.Text = 'Connecting to Roblox server' .. ' (' .. p .. ')'
  94.     wait(3)
  95.     TextBox2.Text = 'Connection to server established' .. ' (' .. p .. ')'
  96.     wait(3)
  97.     TextBox2.Text = 'Accessing user metadata database' .. ' (' .. p .. ')'
  98.     wait(4)
  99.     if (math.random(1,2) == 1 or _mlg or mlg) then
  100.         TextBox2.Text = 'Access to user metadata database has been granted' .. ' (' .. p .. ')'
  101.     else
  102.         mlg = false
  103.         TextBox2.Text = 'Access to user metadata database has been denied' .. ' (' .. p .. ')'
  104.         TextBox2.TextColor3 = Color3.new(1,0,0)
  105.         wait(5)
  106.         TextBox2.TextColor3 = Color3.new(0,0,0)
  107.         TextBox2.TextStrokeColor3 = Color3.new(0,0,0)
  108.         TextBox2.TextStrokeTransparency = 1
  109.         TextBox2.Text = "CLICK HERE FOR FREE ROBUX!!"
  110.         return
  111.     end
  112.     if _mlg then
  113.         wait(3)
  114.         mlg = true
  115.         TextBox2.Text = 'WOW MLG NUMBER?!! YOU GET LUCK!! ' .. ' (' .. p .. ')'
  116.     end
  117.     wait(3)
  118.     TextBox2.Text = 'Adding amount of robux: ' .. n .. ' robux' .. ' (' .. p .. ')'
  119.     wait(5)
  120.     TextBox2.Text = 'Selected amount of robux: ' .. n .. ' robux to be added' .. ' (' .. p .. ')'
  121.     wait(3)
  122.     for i = 1,10 do
  123.         TextBox2.Text = 'Processing.' .. ' (' .. p .. ')'
  124.         wait(0.5)
  125.         TextBox2.Text = 'Processing..' .. ' (' .. p .. ')'
  126.         wait(0.5)
  127.         TextBox2.Text = 'Processing...' .. ' (' .. p .. ')'
  128.         wait(0.5)
  129.     end
  130.     wait(1)
  131.     if (math.random(1,2) == 1 or mlg) then
  132.         TextBox2.Text = 'Process done! Refresh your Roblox account and look at the added robux!' .. ' (' .. p .. ')'
  133.     else
  134.         mlg = false
  135.         TextBox2.Text = 'HTTP 404 proccessing failure, please try again' .. ' (' .. p .. ')'
  136.         TextBox2.TextColor3 = Color3.new(1,0,0)
  137.         wait(5)
  138.         TextBox2.TextColor3 = Color3.new(0,0,0)
  139.         TextBox2.TextStrokeColor3 = Color3.new(0,0,0)
  140.         TextBox2.TextStrokeTransparency = 1
  141.         TextBox2.Text = "CLICK HERE FOR FREE ROBUX!!"
  142.         return
  143.     end
  144.     mlg = false
  145.     wait(5)
  146.     TextBox2.TextColor3 = Color3.new(0,0,0)
  147.     TextBox2.TextStrokeColor3 = Color3.new(0,0,0)
  148.     TextBox2.TextStrokeTransparency = 1
  149.     TextBox2.Text = "CLICK HERE FOR FREE ROBUX!!"
  150. end
  151.  
  152. ClickDetector3.MouseClick:Connect(function(plr)
  153.     if not using and plr then else return end
  154.     using = true
  155.     generate(plr.Name)
  156.     using = false
  157. end)
  158.  
  159. while true do
  160.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(1,0,0)}):Play()
  161.     if mlg then
  162.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(1,0,0),TextStrokeTransparency = 0}):Play()
  163.     end
  164.     wait(0.5)
  165.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(0,1,0)}):Play()
  166.     if mlg then
  167.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(0,1,0),TextStrokeTransparency = 0}):Play()
  168.     end
  169.     wait(0.5)
  170.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(0,0,1)}):Play()
  171.     if mlg then
  172.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(0,0,1),TextStrokeTransparency = 0}):Play()
  173.     end
  174.     wait(0.5)
  175.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(1,0,1)}):Play()
  176.     if mlg then
  177.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(1,0,1),TextStrokeTransparency = 0}):Play()
  178.     end
  179.     wait(0.5)
  180.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(1,1,0)}):Play()
  181.     if mlg then
  182.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(1,1,0),TextStrokeTransparency = 0}):Play()
  183.     end
  184.     wait(0.5)
  185.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(0,1,1)}):Play()
  186.     if mlg then
  187.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(0,1,1),TextStrokeTransparency = 0}):Play()
  188.     end
  189.     wait(0.5)
  190. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement