Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function noTax(amt)
- GoalAmount = amount
- TaxedAmount = math.floor(GoalAmount*0.30)
- FinalAmount = 0
- repeat -- remove comment when running roblox lua wait()
- FinalAmount = FinalAmount+1
- TaxedFinal = math.floor(FinalAmount*0.30)
- FinalEquation = math.floor(FinalAmount-TaxxedFinal)
- until FinalEquation == GoalAmount
- return tostring(FinalAmount+1)
- end
- if noTax == true then
- _G.totalDrop = noTax(_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