Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

help me plz take a look?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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

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? adark 5487 — 10y
0
You spelled position wrong in the parameters after the ComputeRawPathAsync. SlickPwner 534 — 10y
0
its giveing me and error at Points = path:GetPoint:PointCoordinates() rodangerj 0 — 10y

2 answers

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

Change:

Points = path:GetPoint:PointCoordinates()

to:

Points = path:GetPointCoordinates()
1
Spaces around the dot operator are not errors, just as they are not around `+` or `-` or `*`. BlueTaslem 18071 — 10y
0
Oh, didn't know that. adark 5487 — 10y
Ad
Log in to vote
-1
Answered by
faruque 30
10 years ago

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.

Answer this question