Camera Bind Documentation

Get module: Camera Bind: bind the camera to a part and update it constantly!


This module must be required on the client.

BindCamera:
BindCamera has 2 arguments. BindCamera will constantly set the player’s CurrentCamera CFrame to a chosen part with RunService. Binding the camera to another part while another bind is active will disconnect the bind and set up the new one.

Arguments:

Name Information
Target Obligatory, part. The part that the camera will be bound to.
Performance Optional, boolean, false. If this parameter is set to true, the camera will be bound via Heartbeat instead of RenderStepped, the latter being the default.
Tween Optional, boolean. If this is true, the camera will tween to the target’s positon. WARNING: This yields until it’s done! It is not customizable unless you change it yourself in the module, and the tween info is: 0.5 seconds, Enum.EasingStyle.Sine, Enum.EasingDirection.Out

Here is a code sample of the function’s usage:

local module = require(workspace.AssetDictionaryModule)
module:BindCamera(workspace.Cameras.SpinningCamera)
task.wait(5)
module:BindCamera(workspace.Cameras.CutsceneCamera)
task.wait(10)
module:Unbind()

SetCameraToPart:
This function has 2 arguments. It’s just a faster way of setting the CurrentCamera CFrame to a part. It can be used after using BindCamera without calling Unbind and it will clean up the connection.

Arguments:

Name Information
Target Obligatory, part. The part that the camera will be set to.
Tween Optional, boolean. If this is true, the camera will tween to the target’s positon. WARNING: This yields until it’s done! It is not customizable unless you change it yourself in the module, and the tween info is: 0.5 seconds, Enum.EasingStyle.Sine, Enum.EasingDirection.Out

code sample:

module:BindCamera(workspace.Menu.IntroCam)
task.wait(5)
module:SetCameraToPart(workspace.Menu.MenuCam)

Unbind:
This function has no arguments. It will disconnect the connection and then set the CameraSubject to the player’s humanoid, the CurrentCamera’s CFrame to the player’s head and set the CameraType to Custom. This function will reset the camera for both BindCamera and SetCameraToPart

code sample:

module:BindCamera(workspace.Cutscene.MovingCamera)
task.wait(7)
module:Unbind()
2 Likes