I just want an example because this doesn't work
01 | game:GetService( "RunService" ):BindToRenderStep( function () |
02 | Running = true |
03 | end ) |
04 |
05 | while true do |
06 | If Running = = false then |
07 | game:GetService( "RunService" ):UnBindToRenderStep( function () |
08 | Running = nil |
09 | end |
10 | end |
1 | local function onRenderStep() |
2 | local subjectPosition = cameraSubject.Torso.CFrame |
3 | local cameraPosition = game.Workspace.Klamman.Torso.CFrame + offset |
4 | camera:Interpolate(cameraPosition, subjectPosition, 1 ) |
5 | end |
6 |
7 | runService:BindToRenderStep( "Camera" , Enum.RenderPriority.Camera.Value, onRenderStep) |