Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- -- Variables and a function:
- local onState = false
- --made by clv2 and Aploparaksis#4890
- local RepStore = game:service'ReplicatedStorage'
- local ev = RepStore.Events.ForceInteract;
- local ev2 = RepStore.Events.Pickup;
- local plr = game:service'Players'.LocalPlayer
- local grab = function(thing)
- if not thing:FindFirstChild('Draggable') then return end;
- repeat
- ev:FireServer(thing)
- thing.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(4,0,1);
- wait()
- ev2:FireServer(thing);
- until not thing or not thing.Parent
- ev:FireServer();
- end
- --
- boogaGrabber = Instance.new("ScreenGui")
- boogaGrabber.Name = "Booga Booga Grabber"
- boogaGrabber.Parent = game.Players.LocalPlayer.PlayerGui
- frameGrabber = Instance.new("Frame")
- frameGrabber.Style = ("RobloxRound")
- frameGrabber.Active = true
- frameGrabber.Draggable = true
- frameGrabber.Position = UDim2.new(0,500,0,200)
- frameGrabber.Size = UDim2.new(0,200,0,100)
- frameGrabber.Parent = boogaGrabber
- scrollFrame = Instance.new("ScrollingFrame")
- scrollFrame.Name = "Content"
- scrollFrame.Size = UDim2.new(1,0,1,0)
- scrollFrame.BackgroundTransparency = 1
- scrollFrame.CanvasSize = UDim2.new(0,0,0,200)
- scrollFrame.Parent = frameGrabber
- onButton = Instance.new("TextButton")
- onButton.Name = "Toggle"
- onButton.Text = "[OFF]"
- onButton.Size = UDim2.new(0,180,0,20)
- onButton.Parent = scrollFrame
- if _G.event then _G.event:disconnect() end
- _G.event = workspace.DescendantAdded:connect(function(o)
- 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
- wait();
- grab(o);
- end
- end)
- onButton.MouseButton1Click:connect(function()
- if not onState then
- onState = true
- onButton.Text = "[ON]"
- if _G.event then _G.event:disconnect() end
- _G.event = workspace.DescendantAdded:connect(function(o)
- if onState then
- 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
- wait();
- grab(o);
- print("Grabbed "..o.Name)
- end
- end
- end)
- else
- onState = false
- onButton.Text = "[OFF]"
- _G.event:disconnect()
- end
- end)
Add Comment
Please, Sign In to add comment