of     2   
chevron_rightchevron_rightchevron_right

sk8er551
#185663712Saturday, March 19, 2016 9:23 PM GMT

while true do path = Game:GetService("PathfindingService"):ComputeRawPathAsync(game.Workspace.Start.Position, game.Workspace.Finish.Position, 200) points = path:GetPointCoordinates() game.Workspace.points:ClearAllChildren() for p = 1, #points do part = Instance.new("Part") part.FormFactor = Enum.FormFactor.Symmetric part.Size = Vector3.new(1,1,1) part.CanCollide = false part.Position = points(p) part.Anchored = true part.BrickColor = BrickColor.DarkGray() part.Parent = game.Workspace.Points end wait(.1) end Just trying to make some bricks between Start and Finish, but I keep getting "part is not a valid member of Workspace" What am I doing wrong here? P.S. don't expect me to know anything
sk8er551
#185678231Sunday, March 20, 2016 1:01 AM GMT

speed bump
chimmihc
#185678423Sunday, March 20, 2016 1:05 AM GMT

That error is not coming from that code.
sk8er551
#185678530Sunday, March 20, 2016 1:06 AM GMT

Oh, well I feel stupid. Meant to say "points is not a valid member of Workspace."
morash
#185678591Sunday, March 20, 2016 1:08 AM GMT

Change "points" to "Points"
sk8er551
#185678884Sunday, March 20, 2016 1:12 AM GMT

while true do path = Game:GetService("PathfindingService"):ComputeRawPathAsync(game.Workspace.Start.Position, game.Workspace.Finish.Position, 500) points = path:GetPointCoordinates() game.Workspace.Points:ClearAllChildren() for p = 1, #points do part = Instance.new("Part") part.FormFactor = Enum.FormFactor.Symmetric part.Size = Vector3.new(1,1,1) part.CanCollide = false part.Position = points(p) part.Anchored = true part.BrickColor = BrickColor.DarkGray() part.Parent = game.Workspace.Points end wait(.1) end Still nothing...
morash
#185678915Sunday, March 20, 2016 1:12 AM GMT

Any new errors or the same old one?
sk8er551
#185678952Sunday, March 20, 2016 1:13 AM GMT

Same, but now it's capitalized.
morash
#185679005Sunday, March 20, 2016 1:14 AM GMT

Check the name and location of the model you're trying to put the points into.
sk8er551
#185679391Sunday, March 20, 2016 1:20 AM GMT

It seems fine, everything as intended. Still nothing..
sk8er551
#185713126Sunday, March 20, 2016 4:13 PM GMT

Woah it's getting bumpy
DataIsLoading
#185713868Sunday, March 20, 2016 4:27 PM GMT

This Code should work.. while true do path = Game:GetService("PathfindingService"):ComputeRawPathAsync(game.Workspace.Start.Position, game.Workspace.Finish.Position, 500) pointStore = Instance.new('Model) pointStore.Name = "Points" if game.Workspace:FindFirstChild'Points' == nil then pointsStore.Parent = game.Workspace end points = path:GetPointCoordinates() game.Workspace.Points:ClearAllChildren() for p = 1, #points do part = Instance.new("Part") part.FormFactor = Enum.FormFactor.Symmetric part.Size = Vector3.new(1,1,1) part.CanCollide = false part.Position = points(p) part.Anchored = true part.BrickColor = BrickColor.DarkGray() part.Parent = game.Workspace.Points end wait(.1) end
sk8er551
#185716658Sunday, March 20, 2016 5:12 PM GMT

No dice. But at least I'm getting a different error message this time: ServerScriptService.Script:6: attempt to index global 'pointsStore' (a nil value)
sk8er551
#185719601Sunday, March 20, 2016 5:56 PM GMT

Woops, turns out there was a typo there. But now I'm getting the old error again: Workspace.Script:18: attempt to call global 'points' (a table value)
sk8er551
#185719672Sunday, March 20, 2016 5:57 PM GMT

while true do path = Game:GetService("PathfindingService"):ComputeRawPathAsync(game.Workspace.Start.Position, game.Workspace.Finish.Position, 500) pointStore = Instance.new('Model') pointStore.Name = "Points" if game.Workspace:FindFirstChild'Points' == nil then pointStore.Parent = game.Workspace end points = path:GetPointCoordinates() game.Workspace.Points:ClearAllChildren() for p = 1, #points do part = Instance.new("Part") part.FormFactor = Enum.FormFactor.Symmetric part.Size = Vector3.new(1,1,1) part.CanCollide = false part.Position = points(p) part.Anchored = true part.BrickColor = BrickColor.DarkGray() part.Parent = game.Workspace.Points end wait(.1) end Workspace.Script:18: attempt to call global 'points' (a table value) Not sure why...
sk8er551
#185735348Sunday, March 20, 2016 9:23 PM GMT

Bump. I'm beginning to believe that I have a curse...
sk8er551
#185737048Sunday, March 20, 2016 9:41 PM GMT

Bump, once again.
sk8er551
#185754739Monday, March 21, 2016 1:33 AM GMT

Yep, definitely cursed.
Xstarlight
#185755919Monday, March 21, 2016 1:48 AM GMT

Whats p in points(p)?
belial52
#185756225Monday, March 21, 2016 1:51 AM GMT

part.Position = points(p) Change it to points[p]
sk8er551
#185801302Monday, March 21, 2016 10:02 PM GMT

Cool, it worked! But now Roblox Studio is crashing every 5-10 seconds or so. Anyone know why this might be?
sk8er551
#185801348Monday, March 21, 2016 10:03 PM GMT

Every 5-10 seconds after running the script, that is.
Rocky28447
#185801480Monday, March 21, 2016 10:04 PM GMT

Copied code from the PathfindingService tutorial on the ROBLOX YT channel. choo choo
sk8er551
#185801588Monday, March 21, 2016 10:06 PM GMT

Why yes, it was. All the more curious as to why it wouldn't work..
Rocky28447
#185801636Monday, March 21, 2016 10:06 PM GMT

You obviously didn't copy it right. ._. choo choo

    of     2   
chevron_rightchevron_rightchevron_right