Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:GetService("Players").LocalPlayer
- local RunService = game:GetService("RunService")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local positions = {
- Vector3.new(-1972, 209, 62);
- Vector3.new(-920, 437, 1732);
- Vector3.new(-1293, 352, 1182);
- Vector3.new(113, -22, 1070);
- Vector3.new(-144, 98, 69);
- Vector3.new(1821, 254, 1761);
- Vector3.new(827, 165, 921);
- Vector3.new(-1129, 248, 593);
- Vector3.new(-1291, 316, -683);
- Vector3.new(1903, 352, 386);
- Vector3.new(560, 335, 1637);
- Vector3.new(1585, 233, 332);
- Vector3.new(1753, 465, 2062);
- Vector3.new(661, 432, 654);
- Vector3.new(-399, 162, 788);
- Vector3.new(1399, 224, -344);
- Vector3.new(630, 486, 1499);
- Vector3.new(-1522, 155,770);
- Vector3.new(1253, 174, -1238);
- Vector3.new(1366, 376, -651);
- Vector3.new(15, -80, -957);
- Vector3.new(1252, 32, -465);
- Vector3.new(228, 322, -1549);
- Vector3.new(754, -160, -539);
- Vector3.new(624, -153, -629);
- Vector3.new(858, -209, -501);
- Vector3.new(1406, 68, 289);
- Vector3.new(-1861, 66, 1843);
- Vector3.new(-212, 267, 1665);
- Vector3.new(-1781, 517, 1701);
- Vector3.new(-1517, 95, -126);
- Vector3.new(-104, 103, 121);
- Vector3.new(-1124, 117, -1148);
- Vector3.new(-1803, 125, -1821);
- Vector3.new(324, 227, -1602);
- Vector3.new(1684, 173, -1762);
- Vector3.new(1622, 131, -301);
- Vector3.new(-7, -2, 1246);
- }
- local function Load()
- for Int, Pos in ipairs(positions) do
- if Player.Character and Pos ~= nil then
- for Num = 1, 4 do
- Player.Character:MoveTo(Pos)
- wait()
- end
- Pos = nil
- end
- if Pos ~= nil then
- return false
- end
- end
- return true
- end
- local function AliveCheck(Object)
- local Properties = Object:FindFirstChild("Properties")
- if Properties then
- local Alive = Properties:FindFirstChild("Alive")
- if Alive then
- if Alive.Value ~= false then
- return true
- end
- end
- end
- end
- repeat
- local needsLoading = Load()
- until needsLoading ~= false
- function Match(Material)
- local PrimaryPart = Material.PrimaryPart
- if PrimaryPart then
- local RenderStep
- RenderStep = RunService.RenderStepped:Connect(function()
- Player.Character.HumanoidRootPart.CFrame = PrimaryPart.CFrame + (PrimaryPart.CFrame.LookVector * -2 + PrimaryPart.CFrame.UpVector * 5)
- ReplicatedStorage.Resources.Data.Events.Traffic.ItemInteraction:InvokeServer("Interaction", Material)
- end)
- delay(2, function()
- if RenderStep then
- RenderStep:Disconnect()
- ReplicatedStorage.Resources.Data.Events.Traffic.StopResource:FireServer()
- end
- end)
- wait(3)
- keypress(0x45)
- repeat wait() ReplicatedStorage.Resources.Data.Events.Traffic.Gear:InvokeServer("Action", Vector3.new(0, 0, 0)) until AliveCheck(Material) ~= true
- warn("Finished collecting " ..Material.Name.. " finding new material..")
- end
- end
- while wait() do
- for _, Material in pairs(workspace.Resources:GetDescendants()) do
- if Material:IsA("Model") and not table.find(_G.blacklist, Material.Name) then
- if AliveCheck(Material) then
- Match(Material)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement