sasod35

BUILD A BOAT FOR TREASURE INFINITE BLOCKS SCRIPT

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