Advertisement
KrYn0MoRe

robax generator script

Jul 26th, 2020 (edited)
2,431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.79 KB | None | 0 0
  1. Part0 = Instance.new("Part")
  2. SurfaceGui1 = Instance.new("SurfaceGui")
  3. TextBox2 = Instance.new("TextLabel")
  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(1000))
  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.    
  94.     local a = Instance.new("Sound")
  95.     a.SoundId = 'rbxassetid://5033272182'
  96.     a.Volume = 2
  97.     a.Looped = false
  98.     a.PlayOnRemove = true
  99.     a.Parent = Part0
  100.     a:Destroy()
  101.    
  102.     TextBox2.Text = 'Connecting to Roblox server' .. ' (' .. p .. ')'
  103.     wait(3)
  104.     TextBox2.Text = 'Connection to server established' .. ' (' .. p .. ')'
  105.     wait(3)
  106.     TextBox2.Text = 'Accessing user metadata database' .. ' (' .. p .. ')'
  107.     wait(4)
  108.    
  109.     if _mlg then
  110.         wait(3)
  111.         mlg = true
  112.         TextBox2.Text = 'WOW MLG NUMBER?!! YOU GET LUCK!! ' .. ' (' .. p .. ')'
  113.        
  114.         local a = Instance.new("Sound")
  115.         a.SoundId = 'rbxassetid://4836721418'
  116.         a.Volume = 3
  117.         a.Looped = false
  118.         a.PlayOnRemove = true
  119.         a.Parent = Part0
  120.         a:Destroy()
  121.     end
  122.    
  123.     if (math.random(1,2) == 1 or _mlg or mlg) then
  124.         TextBox2.Text = 'Access to user metadata database has been granted' .. ' (' .. p .. ')'
  125.     else
  126.         mlg = false
  127.         TextBox2.Text = 'Access to user metadata database has been denied' .. ' (' .. p .. ')'
  128.         TextBox2.TextColor3 = Color3.new(1,0,0)
  129.         wait(5)
  130.         TextBox2.TextColor3 = Color3.new(0,0,0)
  131.         TextBox2.TextStrokeColor3 = Color3.new(0,0,0)
  132.         TextBox2.TextStrokeTransparency = 1
  133.         TextBox2.Text = "CLICK HERE FOR FREE ROBUX!!"
  134.         return
  135.     end
  136.     wait(3)
  137.     TextBox2.Text = 'Adding amount of robux: ' .. n .. ' robux' .. ' (' .. p .. ')'
  138.     wait(5)
  139.     TextBox2.Text = 'Selected amount of robux: ' .. n .. ' robux to be added' .. ' (' .. p .. ')'
  140.     wait(3)
  141.     for i = 1,10 do
  142.         TextBox2.Text = 'Processing.' .. ' (' .. p .. ')'
  143.         wait(0.5)
  144.         TextBox2.Text = 'Processing..' .. ' (' .. p .. ')'
  145.         wait(0.5)
  146.         TextBox2.Text = 'Processing...' .. ' (' .. p .. ')'
  147.         wait(0.5)
  148.     end
  149.     wait(1)
  150.     if (math.random(1,2) == 1 or mlg) then
  151.         TextBox2.Text = 'Process done! Refresh your Roblox account and look at the added robux!' .. ' (' .. p .. ')'
  152.     else
  153.         mlg = false
  154.         TextBox2.Text = 'HTTP 404 proccessing failure, please try again' .. ' (' .. p .. ')'
  155.         TextBox2.TextColor3 = Color3.new(1,0,0)
  156.         wait(5)
  157.         TextBox2.TextColor3 = Color3.new(0,0,0)
  158.         TextBox2.TextStrokeColor3 = Color3.new(0,0,0)
  159.         TextBox2.TextStrokeTransparency = 1
  160.         TextBox2.Text = "CLICK HERE FOR FREE ROBUX!!"
  161.         return
  162.     end
  163.     mlg = false
  164.     wait(5)
  165.     TextBox2.TextColor3 = Color3.new(0,0,0)
  166.     TextBox2.TextStrokeColor3 = Color3.new(0,0,0)
  167.     TextBox2.TextStrokeTransparency = 1
  168.     TextBox2.Text = "CLICK HERE FOR FREE ROBUX!!"
  169. end
  170.  
  171. ClickDetector3.MouseClick:Connect(function(plr)
  172.     if not using and plr then else return end
  173.     using = true
  174.     generate(plr.Name)
  175.     using = false
  176. end)
  177.  
  178. while true do
  179.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(1,0,0)}):Play()
  180.     if mlg then
  181.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(1,0,0),TextStrokeTransparency = 0}):Play()
  182.     end
  183.     wait(0.5)
  184.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(0,1,0)}):Play()
  185.     if mlg then
  186.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(0,1,0),TextStrokeTransparency = 0}):Play()
  187.     end
  188.     wait(0.5)
  189.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(0,0,1)}):Play()
  190.     if mlg then
  191.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(0,0,1),TextStrokeTransparency = 0}):Play()
  192.     end
  193.     wait(0.5)
  194.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(1,0,1)}):Play()
  195.     if mlg then
  196.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(1,0,1),TextStrokeTransparency = 0}):Play()
  197.     end
  198.     wait(0.5)
  199.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(1,1,0)}):Play()
  200.     if mlg then
  201.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(1,1,0),TextStrokeTransparency = 0}):Play()
  202.     end
  203.     wait(0.5)
  204.     game:GetService("TweenService"):Create(Part0,TweenInfo.new(0.5),{Color = Color3.new(0,1,1)}):Play()
  205.     if mlg then
  206.         game:GetService("TweenService"):Create(TextBox2,TweenInfo.new(0.5),{TextStrokeColor3 = Color3.new(0,1,1),TextStrokeTransparency = 0}):Play()
  207.     end
  208.     wait(0.5)
  209. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement