Advertisement
Impersoned

BobuxSimulator/Roblox

Nov 28th, 2020 (edited)
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.85 KB | None | 0 0
  1. local BobuxGain = 1
  2. local BobuxAuto = 0
  3. local BobuxCost2 = 40
  4. local BobuxCost = 20
  5. local Bobux = 1
  6. local DisplayBobux = 1
  7. local Player = script.Parent.Parent
  8. if Player.Name == "Workspace" then
  9.     Player = script.Parent
  10. else
  11.     Player = workspace:WaitForChild(tostring(Player), 10)
  12. end
  13. local ToolM = Instance.new("Tool", workspace)
  14. ToolM.CanBeDropped = false
  15. ToolM.Enabled = true
  16. ToolM.Name = (tostring(Bobux) .. "x Bobux")
  17. ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
  18. local ToolH = Instance.new("Part", ToolM)
  19. ToolH.Size = Vector3.new(2,(0.1+(0.01*Bobux)),1)
  20. ToolH.Material = "Slate"
  21. ToolH.Color = Color3.new(0,0.5,0.25)
  22. ToolH.Name = "Handle"
  23. ToolM.Parent = Player
  24. local function onActivated()
  25.     DisplayBobux = Bobux
  26.     if DisplayBobux > 100 then
  27.         DisplayBobux = 100
  28.     end
  29.     Bobux = Bobux + BobuxGain
  30.     ToolM.Name = (tostring(Bobux) .. "x Bobux")
  31.     ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
  32.     ToolH.Size = Vector3.new(2,(0.1+(0.01*DisplayBobux)),1)
  33. end
  34. local ToolM2 = Instance.new("Tool", workspace)
  35. ToolM2.CanBeDropped = false
  36. ToolM2.Enabled = false
  37. ToolM2.Name = (tostring(BobuxGain) .. " > " .. tostring((BobuxGain + 1)) .. " BPC " .. tostring(BobuxCost) .. "  Bobux")
  38. ToolM2.ToolTip = ("Cost:" .. tostring(BobuxCost) .. " Bobux")
  39. local ToolH2 = Instance.new("Part", ToolM2)
  40. ToolH2.Size = Vector3.new(0.5,2,0.5)
  41. ToolH2.Color = Color3.new(0,1,0)
  42. ToolH2.Material = "Neon"
  43. ToolH2.Transparency = 0.7
  44. ToolH2.Name = "Handle"
  45. ToolM2.Parent = Player
  46. local function onActivated2()
  47.     if Bobux > (BobuxCost - 1) then
  48.         Bobux = Bobux - BobuxCost
  49.         BobuxGain =  math.round((BobuxGain * 1.1 )+ 1)
  50.         ToolM.Name = (tostring(Bobux) .. "x Bobux")
  51.         ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
  52.         DisplayBobux = Bobux
  53.         if DisplayBobux > 100 then
  54.             DisplayBobux = 100
  55.         end
  56.         ToolH.Size = Vector3.new(2,(0.1+(0.01*DisplayBobux)),1)
  57.         BobuxCost = BobuxCost * 1.35
  58.         BobuxCost = math.round(BobuxCost)
  59.         ToolM2.Name = (tostring(BobuxGain) .. " > " .. tostring(math.round((BobuxGain * 1.1 )+ 1)) .. " BPC " .. tostring(BobuxCost) .. "  Bobux")
  60.         ToolM2.ToolTip = ("Cost:" .. tostring(BobuxCost) .. " Bobux")
  61.     end
  62. end
  63. local ToolM3 = Instance.new("Tool", workspace)
  64. ToolM3.CanBeDropped = false
  65. ToolM3.Enabled = false
  66. ToolM3.Name = (tostring(BobuxAuto) .. " > " .. tostring((BobuxAuto + 1)) .. " BPS " .. tostring(BobuxCost2) .. "  Bobux")
  67. ToolM3.ToolTip = ("Cost:" .. tostring(BobuxCost2) .. " Bobux")
  68. local ToolH3 = Instance.new("Part", ToolM3)
  69. ToolH3.Size = Vector3.new(0.5,2,0.5)
  70. ToolH3.Color = Color3.new(0,0.5,0.7)
  71. ToolH3.Material = "Neon"
  72. ToolH3.Transparency = 0.7
  73. ToolH3.Name = "Handle"
  74. ToolM3.Parent = Player
  75. local function onActivated3()
  76.     if Bobux > (BobuxCost2 - 1) then
  77.         Bobux = Bobux - BobuxCost2
  78.         BobuxAuto =  math.round((BobuxAuto * 1.3 )+ 1)
  79.         ToolM.Name = (tostring(Bobux) .. "x Bobux")
  80.         ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
  81.         DisplayBobux = Bobux
  82.         if DisplayBobux > 100 then
  83.             DisplayBobux = 100
  84.         end
  85.         ToolH.Size = Vector3.new(2,(0.1+(0.01*DisplayBobux)),1)
  86.         BobuxCost2 = math.round((BobuxCost2 * 1.35))
  87.         ToolM3.Name = (tostring(BobuxAuto) .. " > " .. tostring(math.round((BobuxAuto * 1.3 )+ 1)) .. " BPS " .. tostring(BobuxCost2) .. "  Bobux")
  88.         ToolM3.ToolTip = ("Cost:" .. tostring(BobuxCost2) .. " Bobux")
  89.     end
  90. end
  91. local function Auto()
  92.     Bobux = Bobux + BobuxAuto
  93.     ToolM.Name = (tostring(Bobux) .. "x Bobux")
  94.     ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
  95.     DisplayBobux = Bobux
  96.     if DisplayBobux > 100 then
  97.         DisplayBobux = 100
  98.     end
  99.     ToolH.Size = Vector3.new(2,(0.1+(0.01*DisplayBobux)),1)
  100. end
  101. ToolM3.Activated:Connect(onActivated3)
  102. ToolM2.Activated:Connect(onActivated2)
  103. ToolM.Activated:Connect(onActivated)
  104. while true do
  105.     wait(1)
  106.     Auto()
  107. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement