Advertisement
BobBillJones

Build a boat for treasure block dupe script

Jul 7th, 2022
2,650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. -- services.
  2. local game = game;
  3. local getService = game.GetService;
  4. local workspace = getService(game, 'Workspace');
  5. local players = getService(game, 'Players');
  6. -- client&indexing.
  7. local client = players.LocalPlayer;
  8. local clientGuis = client.PlayerGui;
  9. local destroy = game.Destroy;
  10. local isA = game.IsA;
  11. local findFirstChild = game.FindFirstChild;
  12. -- remove annoying buying effects.
  13. local itemGainedScript = findFirstChild(clientGuis.ItemGained, 'LocalScript', true); -- Recursive because im lazy (〃▽〃)
  14. if itemGainedScript then
  15. destroy(itemGainedScript);
  16. end;
  17. clientGuis.DescendantAdded:Connect(function(c) -- Not going to bother with indexing a signal <( ̄ ﹌  ̄)>
  18. if c.Name == 'NoChestAnimation' or (isA(c, 'LocalScript') and c.Parent.Name == 'DisplayGainedItem') then
  19. task.defer(destroy, c);
  20. end;
  21. end);
  22. -- funny while true do!
  23. local buy = workspace.ItemBoughtFromShop;
  24. local invoke_server = buy.InvokeServer;
  25. while true do
  26. pcall(invoke_server, buy, 'Winter Chest', 6); -- Due the game actually erroring.
  27. task.wait();
  28. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement