Leodu41

zdzd

Oct 30th, 2020
922
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                     local props = game:GetService("Workspace").Debris.Revolver.Handle:GetDescendants() -- Grab everything in Folder.
  2.                     for i = 1, #props do -- Loop through everything to find what we need.
  3.                         local prop = props[i]
  4.                         if prop.Name == "Handle" then -- GUI we are looking for.
  5.                             local PlayerCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame
  6.                             if prop.Orientation.Y > -3162 then -- Bellow map check..
  7.                                 LocalPlayer.Character.HumanoidRootPart.CFrame = prop.CFrame + Vector3.new(0, 3, 0) -- Teleport Player to Prop (Their new check forces you to be near it to pick it up..)
  8.                                 wait(0.5) -- Wait for us to teleport.
  9.                                 game:GetService("ReplicatedStorage").Events.Loot:FireServer(prop.Parent) -- Parent of Green
  10.                             end
  11.                         end
  12.             end
RAW Paste Data