Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BobuxGain = 1
- local BobuxAuto = 0
- local BobuxCost2 = 40
- local BobuxCost = 20
- local Bobux = 1
- local DisplayBobux = 1
- local Player = script.Parent.Parent
- if Player.Name == "Workspace" then
- Player = script.Parent
- else
- Player = workspace:WaitForChild(tostring(Player), 10)
- end
- local ToolM = Instance.new("Tool", workspace)
- ToolM.CanBeDropped = false
- ToolM.Enabled = true
- ToolM.Name = (tostring(Bobux) .. "x Bobux")
- ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
- local ToolH = Instance.new("Part", ToolM)
- ToolH.Size = Vector3.new(2,(0.1+(0.01*Bobux)),1)
- ToolH.Material = "Slate"
- ToolH.Color = Color3.new(0,0.5,0.25)
- ToolH.Name = "Handle"
- ToolM.Parent = Player
- local function onActivated()
- DisplayBobux = Bobux
- if DisplayBobux > 100 then
- DisplayBobux = 100
- end
- Bobux = Bobux + BobuxGain
- ToolM.Name = (tostring(Bobux) .. "x Bobux")
- ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
- ToolH.Size = Vector3.new(2,(0.1+(0.01*DisplayBobux)),1)
- end
- local ToolM2 = Instance.new("Tool", workspace)
- ToolM2.CanBeDropped = false
- ToolM2.Enabled = false
- ToolM2.Name = (tostring(BobuxGain) .. " > " .. tostring((BobuxGain + 1)) .. " BPC " .. tostring(BobuxCost) .. " Bobux")
- ToolM2.ToolTip = ("Cost:" .. tostring(BobuxCost) .. " Bobux")
- local ToolH2 = Instance.new("Part", ToolM2)
- ToolH2.Size = Vector3.new(0.5,2,0.5)
- ToolH2.Color = Color3.new(0,1,0)
- ToolH2.Material = "Neon"
- ToolH2.Transparency = 0.7
- ToolH2.Name = "Handle"
- ToolM2.Parent = Player
- local function onActivated2()
- if Bobux > (BobuxCost - 1) then
- Bobux = Bobux - BobuxCost
- BobuxGain = math.round((BobuxGain * 1.1 )+ 1)
- ToolM.Name = (tostring(Bobux) .. "x Bobux")
- ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
- DisplayBobux = Bobux
- if DisplayBobux > 100 then
- DisplayBobux = 100
- end
- ToolH.Size = Vector3.new(2,(0.1+(0.01*DisplayBobux)),1)
- BobuxCost = BobuxCost * 1.35
- BobuxCost = math.round(BobuxCost)
- ToolM2.Name = (tostring(BobuxGain) .. " > " .. tostring(math.round((BobuxGain * 1.1 )+ 1)) .. " BPC " .. tostring(BobuxCost) .. " Bobux")
- ToolM2.ToolTip = ("Cost:" .. tostring(BobuxCost) .. " Bobux")
- end
- end
- local ToolM3 = Instance.new("Tool", workspace)
- ToolM3.CanBeDropped = false
- ToolM3.Enabled = false
- ToolM3.Name = (tostring(BobuxAuto) .. " > " .. tostring((BobuxAuto + 1)) .. " BPS " .. tostring(BobuxCost2) .. " Bobux")
- ToolM3.ToolTip = ("Cost:" .. tostring(BobuxCost2) .. " Bobux")
- local ToolH3 = Instance.new("Part", ToolM3)
- ToolH3.Size = Vector3.new(0.5,2,0.5)
- ToolH3.Color = Color3.new(0,0.5,0.7)
- ToolH3.Material = "Neon"
- ToolH3.Transparency = 0.7
- ToolH3.Name = "Handle"
- ToolM3.Parent = Player
- local function onActivated3()
- if Bobux > (BobuxCost2 - 1) then
- Bobux = Bobux - BobuxCost2
- BobuxAuto = math.round((BobuxAuto * 1.3 )+ 1)
- ToolM.Name = (tostring(Bobux) .. "x Bobux")
- ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
- DisplayBobux = Bobux
- if DisplayBobux > 100 then
- DisplayBobux = 100
- end
- ToolH.Size = Vector3.new(2,(0.1+(0.01*DisplayBobux)),1)
- BobuxCost2 = math.round((BobuxCost2 * 1.35))
- ToolM3.Name = (tostring(BobuxAuto) .. " > " .. tostring(math.round((BobuxAuto * 1.3 )+ 1)) .. " BPS " .. tostring(BobuxCost2) .. " Bobux")
- ToolM3.ToolTip = ("Cost:" .. tostring(BobuxCost2) .. " Bobux")
- end
- end
- local function Auto()
- Bobux = Bobux + BobuxAuto
- ToolM.Name = (tostring(Bobux) .. "x Bobux")
- ToolM.ToolTip = (tostring(Bobux) .. " Bobux")
- DisplayBobux = Bobux
- if DisplayBobux > 100 then
- DisplayBobux = 100
- end
- ToolH.Size = Vector3.new(2,(0.1+(0.01*DisplayBobux)),1)
- end
- ToolM3.Activated:Connect(onActivated3)
- ToolM2.Activated:Connect(onActivated2)
- ToolM.Activated:Connect(onActivated)
- while true do
- wait(1)
- Auto()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement