So i am making a game and i want to do this code right here:
local waypoints = script.Parent.Walkpoints
local MovingPart = script.Parent.MovingPart
for waypoint = 1, #waypoints:GetChildren() do
local waypoint22 = waypoints[waypoint]
MovingPart.MovingTo.Value = waypoint
for i = 0,1,.01 do
wait()
MovingPart.CFrame = MovingPart.CFrame:Lerp(waypoint22.CFrame, i)
end
end
loopable. i am making this for my friend and i want it to be easily customizable for him. if you know how i could do it. please let me know!