I can't seem to get this script to work, which is inside of an R15 NPC scaled down to 0.5 and a 0.8 head to fit into my game theme. But I have a script inside of it which should make it move between a certain amount of points in a circle. There are no errors appearing in the console, but I have the script here:
local points = {game.Workspace.Points.one,game.Workspace.Points.two,game.Workspace.Points.three,game.Workspace.Points.four,game.Workspace.Points.five,game.Workspace.Points.six,
game.Workspace.Points.seven,game.Workspace.Points.eight,
game.Workspace.Points.nine,game.Workspace.Points.ten,
game.Workspace.Points.eleven,game.Workspace.Points.twelve} --Contains the parts that are in a model called Points in workspace
local current = 0
while true do
wait()
for i = 0,#points, 1 do
current = current + 1
script.Parent.Humanoid:MoveTo(points[current])
repeat wait() until script.Parent.Humanoid.MoveToFinished(true)
end
current = 0
end
The place is Here. I also think there is probably a way to shorten the table down to make it more efficient .~.
Any help would be appreciated... Oh, and I don't know if this will affect the outcome, but the NPC is animated.

1 comment
You can use a for loop to loop through the 'Points' object, then have the current iteration object be added to the table via table.insert.