Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- 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('Armor') or o.Name:find('Bag') or o.Name:find('Magnetite') then
- wait();
- grab(o);
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement