Axolotleless

2d cam

Feb 12th, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. --[[Place this inside of a Local Script]]
  2. --[[Place the LocalScript into the StarterCharacterScripts]]
  3.  
  4. local cam = workspace.CurrentCamera
  5.  
  6. local char = script.Parent
  7. local hrp = char:WaitForChild("HumanoidRootPart")
  8.  
  9. game:GetService("RunService").RenderStepped:Connect(function()
  10.  
  11.     cam.CameraType = Enum.CameraType.Scriptable
  12.  
  13.     cam.CFrame = cam.CFrame:Lerp(CFrame.new(hrp.Position + Vector3.new(0, 5, 35), hrp.Position), 0.1)
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment