Advertisement
Grenesis

Untitled

Oct 13th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. local message = require(game.ReplicatedStorage.Library.Client.Message) message.Error("GEMS SPAWNER💎 (UPDATED)") Directory = require(game:GetService("ReplicatedStorage").Library.Directory)
  2.  
  3. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/random%202"))()
  4. local One = library:Window("Gem Spawner")
  5.  
  6. local desiredAmount = 0
  7.  
  8. One:Box("Gems =", "Type Here!", function(inputText)
  9. desiredAmount = tonumber(inputText) or 0
  10. end)
  11.  
  12. One:Button("Start Spawning Gems", function()
  13. if desiredAmount > 0 then
  14. local library = require(game.ReplicatedStorage.Library.Client.CurrencyCmds)
  15. local originalGetFunction = library.Get
  16. local currentDiamonds = originalGetFunction("Diamonds")
  17.  
  18. library.Get = function(currencyId)
  19. if currencyId == "Diamonds" then
  20. return currentDiamonds + desiredAmount
  21. else
  22. return originalGetFunction(currencyId)
  23. end
  24. end
  25.  
  26. local newDiamonds = currentDiamonds + desiredAmount
  27. library.Set("Diamonds", newDiamonds)
  28.  
  29. print("Diamonds increased by: " .. desiredAmount)
  30. else
  31. warn("Invalid amount entered")
  32. end
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement