function Next()
local nextpos = camparts:FindFirstChild('Cam' .. Count)
if nextpos then
tws:Create(camera,TI,{CFrame = nextpos.CFrame}):Play()
Count += 1
wait(1.5)
else
Count = 1
end
end
while InMenu == true do
Next()
end
it cycles through every camera part until the last one, then Count resets to 1.
No. Linear is already y = x so reflecting it over itself doesn’t do anything.
The images I shown were made with a plugin I made: TweenService grapher - Roblox
You can check it out for easingstyles / easingdirections
I would recommend using CFrame:Lerp() to achieve the effect.
CFrame:Lerp() takes two arguments. The CFrame to lerp to, and the amount.
local TweenSpeed = 0.1
Camera.CFrame:Lerp(desiredCFrameHere, TweenSpeed)
Two things to note:
For the best effect, call the :Lerp() function every frame
This leap function will only get you so close. It technically never actually reaches your destination, just gets infinitely close. This will get a smooth movement regardless, and is fine for most situations.