Advertisement
pnyx_

Untitled

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