Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

help me plz take a look?

while true do path = game:GetService("PathfindingService") :ComputeRawPathAsync(workspace.Start. Position, workspace.Finish. Position, 200)

Points = path:GetPoint:PointCoordinates()

game.Workspace.Points:ClearAllChildren()

for p = 1, #points do
	part = Instance.new("Part")
	part.FormFactor = Enum.FormFactor.Symmetric
	part.CanCollide = false
	part.Size = Vecter3.new(1.1.1)
	part.Position = points[p]
	part.Anchord = true
	part.BrickColor = BrickColor.Gray()
	Part.Parent = game.Workspace.Points
end

wait(0.1) end

3 comments

0

Please fix your question so that all of the code is inside the squiggles produced when you click the Lua button. Also, what exactly is the problem you're having?

0

You spelled position wrong in the parameters after the ComputeRawPathAsync.

0

its giveing me and error at Points = path:GetPoint:PointCoordinates()

2 answers

Change:

Points = path:GetPoint:PointCoordinates()

to:

Points = path:GetPointCoordinates()

2 comments

1

Spaces around the dot operator are not errors, just as they are not around + or - or *.

0

Oh, didn't know that.

Change part.BrickColor = BrickColor.Gray() to part.BrickColor = BrickColor.New("Dark stone grey") because if you say just "Grey" the script doesn't recognise that as a BrickColor.

This discussion is preserved as it was. New answers, comments, and votes are closed.