Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.totalDrop = 3000
- _G.noTax = true
- function tx(amt)
- GoalAmount = amt
- TaxedAmount = math.floor(GoalAmount*0.30)
- FinalAmount = 0
- print("Found the tax = "..TaxedAmount)
- repeat -- remove comment when running roblox lua wait()
- if FinalEqation == GoalAmount then
- break
- end
- FinalAmount = FinalAmount+1
- TaxxedFinal = math.floor(FinalAmount*0.30)
- FinalEqation = math.floor(FinalAmount-TaxxedFinal)
- if FinalEqation == GoalAmount then
- break
- end
- until FinalEqation == GoalAmount
- return tostring(FinalAmount+1)
- end
- if _G.noTax == true then
- _G.totalDrop = tx(_G.totalDrop)
- else
- _G.totalDrop = _G.totalDrop
- end
- local MainEvent = game.ReplicatedStorage:WaitForChild("MainEvent")
- local curbal = tonumber(game.Players.LocalPlayer.DataFolder.Currency.Value)
- local toDropto = (curbal - _G.totalDrop)
- getrenv().Drop = true --false
- while true do wait()
- curbal = tonumber(game.Players.LocalPlayer.DataFolder.Currency.Value)
- if curbal - toDropto > 9999 then
- amount = 10000
- else
- amount = curbal - toDropto
- end
- if curbal > toDropto and getrenv().Drop == true then
- MainEvent:FireServer("DropMoney", amount)
- else
- break;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement