Advertisement
Guest User

Untitled

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