Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you get the endPos and endFocus for interpolation?

It's confusing.

I don't understand how people are able to locate the values for endPos and endFocus.

1 answer

✓ Accepted answer

I would recommend creating transparent, non-collidable, anchored bricks for this. endPos is the position that the camera would end up at, and the endFocus is where the camera will be looking at when the interpolation is complete. So make parts for each of those.

You can then do something like this in a local script for the interpolation, where PARTNAME is the name of the part (assuming you don't have FilteringEnabled set to true in Workspace).

--Put some code above maybe.
game.Workspace.CurrentCamera:Interpolate(game.Workspace.PARTNAME.CFrame, game.Workspace.PARTNAME.CFrame, 2) 
--Or even some code below.

--The "2" is the time it takes to interpolate, so change that accordingly, along with the PARTNAME parts.

4 comments

0

That makes it easier for me. Thanks!

0

It'll only interpolate to brick1 and that's it. Help?

0

It'll only interpolate to brick2**

0

Make sure the camera type is Scriptable. Also, if you're doing multiple interpolations, use wait(TIME) to wait until the other interpolation is done, where time is the time specified for how long the interpolation lasts.

This discussion is preserved as it was. New answers, comments, and votes are closed.