Advertisement
pnyx_

Untitled

Oct 17th, 2019
2,600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. function tx(amt)
  2. GoalAmount = amt
  3. TaxedAmount = math.floor(GoalAmount*0.30)
  4. FinalAmount = 0
  5. print("Found the tax = "..TaxedAmount)
  6. repeat -- remove comment when running roblox lua wait()
  7. if FinalEqation == GoalAmount then
  8. break
  9. end
  10. FinalAmount = FinalAmount+1
  11. TaxxedFinal = math.floor(FinalAmount*0.30)
  12. FinalEqation = math.floor(FinalAmount-TaxxedFinal)
  13. if FinalEqation == GoalAmount then
  14. break
  15. end
  16. until FinalEqation == GoalAmount
  17. return tostring(FinalAmount+1)
  18. end
  19. if _G.noTax == true then
  20. _G.totalDrop = tx(_G.totalDrop)
  21. else
  22. _G.totalDrop = _G.totalDrop
  23. end
  24. local MainEvent = game.ReplicatedStorage:WaitForChild("MainEvent")
  25. local curbal = tonumber(game.Players.LocalPlayer.DataFolder.Currency.Value)
  26. local toDropto = (curbal - _G.totalDrop)
  27. getrenv().Drop = true --false
  28.  
  29. while true do wait()
  30. curbal = tonumber(game.Players.LocalPlayer.DataFolder.Currency.Value)
  31. if curbal - toDropto > 9999 then
  32. amount = 10000
  33. else
  34. amount = curbal - toDropto
  35. end
  36. if curbal > toDropto and getrenv().Drop == true then
  37. MainEvent:FireServer("DropMoney", amount)
  38. else
  39. break;
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement