imtoofat3322

Untitled

Apr 2nd, 2018
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1.  
  2. wait(1)
  3. -- Variables and a function:
  4. local onState = false
  5. --made by clv2 and Aploparaksis#4890
  6. local RepStore = game:service'ReplicatedStorage'
  7. local ev = RepStore.Events.ForceInteract;
  8. local ev2 = RepStore.Events.Pickup;
  9. local plr = game:service'Players'.LocalPlayer
  10. local grab = function(thing)
  11. if not thing:FindFirstChild('Draggable') then return end;
  12. repeat
  13. ev:FireServer(thing)
  14. thing.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(4,0,1);
  15. wait()
  16. ev2:FireServer(thing);
  17. until not thing or not thing.Parent
  18. ev:FireServer();
  19. end
  20. --
  21.  
  22. boogaGrabber = Instance.new("ScreenGui")
  23. boogaGrabber.Name = "Booga Booga Grabber"
  24. boogaGrabber.Parent = game.Players.LocalPlayer.PlayerGui
  25. frameGrabber = Instance.new("Frame")
  26. frameGrabber.Style = ("RobloxRound")
  27. frameGrabber.Active = true
  28. frameGrabber.Draggable = true
  29. frameGrabber.Position = UDim2.new(0,500,0,200)
  30. frameGrabber.Size = UDim2.new(0,200,0,100)
  31. frameGrabber.Parent = boogaGrabber
  32. scrollFrame = Instance.new("ScrollingFrame")
  33. scrollFrame.Name = "Content"
  34. scrollFrame.Size = UDim2.new(1,0,1,0)
  35. scrollFrame.BackgroundTransparency = 1
  36. scrollFrame.CanvasSize = UDim2.new(0,0,0,200)
  37. scrollFrame.Parent = frameGrabber
  38. onButton = Instance.new("TextButton")
  39. onButton.Name = "Toggle"
  40. onButton.Text = "[OFF]"
  41. onButton.Size = UDim2.new(0,180,0,20)
  42. onButton.Parent = scrollFrame
  43.  
  44. if _G.event then _G.event:disconnect() end
  45. _G.event = workspace.DescendantAdded:connect(function(o)
  46. if o.Name:find('Adurite') or o.Name:find('Gold') or o.Name:find('Crystal') or o.Name:find('Coin') or o.Name:find('Essence') or o.Name:find('Iron') or o.Name:find('Steel') or o.Name:find('Cooked') or o.Name:find('Coal') or o.Name:find('Leave') or o.Name:find('Log') or o.Name:find('Stick') or o.Name:find('Ice') or o.Name:find('Stone') or o.Name:find('Hide') or o.Name:find('Raw') or o.Name:find('Uncooked') or o.Name:find('Armor') or o.Name:find('Bag') or o.Name:find('Chunk') then
  47. wait();
  48. grab(o);
  49. end
  50. end)
  51. onButton.MouseButton1Click:connect(function()
  52. if not onState then
  53. onState = true
  54. onButton.Text = "[ON]"
  55. if _G.event then _G.event:disconnect() end
  56. _G.event = workspace.DescendantAdded:connect(function(o)
  57. if onState then
  58. if o.Name:find('Adurite') or o.Name:find('Gold') or o.Name:find('Crystal') or o.Name:find('Coin') or o.Name:find('Essence') or o.Name:find('Iron') or o.Name:find('Steel') or o.Name:find('Cooked') or o.Name:find('Coal') or o.Name:find('Leave') or o.Name:find('Log') or o.Name:find('Stick') or o.Name:find('Ice') or o.Name:find('Stone') or o.Name:find('Hide') or o.Name:find('Raw') or o.Name:find('Uncooked') or o.Name:find('Armor') or o.Name:find('Bag') or o.Name:find('Chunk') then
  59. wait();
  60. grab(o);
  61. print("Grabbed "..o.Name)
  62. end
  63. end
  64. end)
  65. else
  66. onState = false
  67. onButton.Text = "[OFF]"
  68. _G.event:disconnect()
  69. end
  70. end)
Add Comment
Please, Sign In to add comment