for i = 1, #script.CHECKPOINT_Folder:GetChildren() do
local anglePart = script.CHECKPOINT_Folder.Value[i]
if anglePart then
local Tween = game.TweenService:Create(script.Parent,TweenInfo.new(1,Enum.EasingStyle.Linear),{CFrame = anglePart.CFrame * CFrame.new(0,0,0)})
Tween:Play()
Tween.Completed:Wait()
-- set camera to this anglePart's CFrame or something
else
end
end
now its sends the part along the checkpoints, starting at the checkpoint called “1”
and ends at the last one. how would i makke it so it does this starting from the last one and stopping at the first one the most simple way?
for i = #script.CHECKPOINT_Folder:GetChildren(), 1, -1 do
local anglePart = script.CHECKPOINT_Folder.Value[i]
if anglePart then
local Tween = game.TweenService:Create(script.Parent,TweenInfo.new(1,Enum.EasingStyle.Linear),{CFrame = anglePart.CFrame * CFrame.new(0,0,0)})
Tween:Play()
Tween.Completed:Wait()
-- set camera to this anglePart's CFrame or something
end
end
uhm actually i literally gave you the starting point. like a normal human being that anyone would’ve done, you shouldve matched the line of code i edited and replaced it, 9/10 times anyone would do that, i was simply asking a question if you meant that or not, and also the point of a post is to ask for help not full scripts, besides you didnt even ask for a full script, “how would i makke it so it does this starting from the last one and stopping at the first one the most simple way?”