K1ngBlitzy

inasal farm

Jun 14th, 2021 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.23 KB | None | 0 0
  1. while farm do
  2.     pcall(function() -- Wrap in pcall to avoid script crashing if there is an error.
  3.         local que = game:GetService("Workspace")["World Assets"]["Inasal Grab Pickup"].DeliveryAssets.DeliveryQuestGiver
  4.         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = que.CFrame + Vector3.new(-8, -5, 5)
  5.         wait(0.5)
  6.         game:GetService("ReplicatedStorage").Events.Delivery.DeliveryStartEvent:FireServer() -- Start Delivery
  7.         local plc = game.Workspace:WaitForChild("Indicator", 5).PrimaryPart -- Get PrimaryPart of Indicator (Max wait 5 seconds)
  8.         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = plc.CFrame + Vector3.new(0, 10, 0) -- Teleport a little above
  9.         wait(0.5) -- Give our player time to teleport.
  10.         game:GetService("ReplicatedStorage").Events.Delivery.DeliveryFinishEvent:FireServer(plc.Name) -- Finish Delivery
  11.         game:GetService("ReplicatedStorage").Events.Delivery.DeliveryAbandonEvent:FireServer() -- Call cancel just incase. (This helps avoid more bugs I noticed)
  12.         repeat wait() until game.Workspace:FindFirstChild("Indicator") == nil -- Wait until the game removes the Indeicator or we'll bug out.
  13.        
  14.     end)
  15. end
Add Comment
Please, Sign In to add comment