Hasli4

rblx. move script

Dec 24th, 2025
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | Gaming | 0 0
  1. local start = workspace.start
  2. local finish = workspace.finish
  3. local service = game:GetService('PathfindingService')
  4. local path = service:FindPathAsync(start.Position,finish.Position)
  5.  
  6. local points = path:GetWaypoints()
  7.  
  8. for key,value in pairs(points) do
  9.     local part = Instance.new ('Part')
  10.     part.Parent = workspace
  11.     part.Anchored = true
  12.     part.CanCollide = false
  13.     part.Position = value.Position
  14.     part.Size = Vector3.new(1,1,1)
  15. end
  16.  
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment