Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local eggspot = Vector3.new(1101.27625, 256.550385, 1444.8064)
- local player = game:GetService("Players").LocalPlayer
- local human = player.Character.Humanoid
- local playerpos = player.Character.Head.Position
- local path = game:GetService("PathfindingService"):FindPathAsync(playerpos,eggspot)
- local points = path:GetWaypoints()
- --SHOWS WHERE POINTS ARE
- for i,v in pairs(points) do
- local z = Instance.new("Part",workspace)
- z.Anchored = true
- z.CanCollide = false
- z.CFrame = CFrame.new(v.Position)
- z.Size = Vector3.new(2,10,2)
- z.Name = "PointPath"
- z.Color = Color3.fromRGB(0,255,255)
- z.Transparency = .3
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement