Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local camera = workspace.CurrentCamera -- finds the camera
- local Run = game:GetService("RunService")
- local part = workspace.CameraView -- name of my camera part
- camera.CameraType = Enum.CameraType.Scriptable
- camera.CameraSubject = part
- local function OnChanged()
- camera.CFrame = part.CFrame
- wait()
- end
- Run.RenderStepped:Connect(OnChanged)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement