Advertisement
Burkino

Untitled

Apr 8th, 2020
1,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. local eggspot = Vector3.new(1101.27625, 256.550385, 1444.8064)
  2.  
  3. local player = game:GetService("Players").LocalPlayer
  4. local human = player.Character.Humanoid
  5. local playerpos = player.Character.Head.Position
  6. local path = game:GetService("PathfindingService"):FindPathAsync(playerpos,eggspot)
  7. local points = path:GetWaypoints()
  8.  
  9. --SHOWS WHERE POINTS ARE
  10.  
  11. for i,v in pairs(points) do
  12. local z = Instance.new("Part",workspace)
  13. z.Anchored = true
  14. z.CanCollide = false
  15. z.CFrame = CFrame.new(v.Position)
  16. z.Size = Vector3.new(2,10,2)
  17. z.Name = "PointPath"
  18. z.Color = Color3.fromRGB(0,255,255)
  19. z.Transparency = .3
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement