Advertisement
Cakey3101

Camera Script - EP 2

Apr 16th, 2025 (edited)
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | Source Code | 0 0
  1. local Workspace = game:GetService("Workspace")
  2. local RunService = game:GetService("RunService")
  3.  
  4. local Camera = Workspace.CurrentCamera
  5. local Character = script.Parent
  6. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  7.  
  8. RunService.PreRender:Connect(function()
  9.     Camera.CameraType = Enum.CameraType.Scriptable
  10.     Camera.CFrame = CFrame.new(HumanoidRootPart.Position.X, HumanoidRootPart.Position.Y + 1, HumanoidRootPart.Position.Z + 15)
  11. end)
Tags: lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement