Roblox Script Valley Crossing autofarm

local r = game:GetService("ReplicatedStorage").Remotes
while wait(0.5) do
   r.animHandler:FireServer("shake");
   local drop = r.addPickupable:InvokeServer("shake");
   if drop then
       r.pickupablePickup:FireServer(drop[2],tostring(drop[1]))
   end
end