#custom camera

1 messages · Page 1 of 1 (latest)

fast hedge
#

im trying to have a camera overhead while staying distances for focus looking at 3 rigs middle how do i do this?(the 3 rigs is supposed to be player)

opal tree
#

so basically a camera overhead facing the rig?

#

if so then this should work:local camera=workspace.CurrentCamera
local player=game.Players.LocalPlayer
camera.CameraType=Enum.CameraType.Scriptable

local rs=game:GetService("RunService")

rs.RenderStepped:Connect(function()
camera.CFrame=CFrame.new(
player.Character.PrimaryPart.Position+Vector3.new(0,30,0),
player.Character.PrimaryPart.Position
)
end)

#

also left and right arrows dont work with this code, use wasd

#

you can also adjust the camera if its too close or far by changing how much vector3 you add

#

hope it helps

stable storm
#

so like

local p = hrp1.pos+hrp1.cf.rightvector*(hrp2.pos-hrp1.pos).mag*0.5
local mid = hrp3.pos+hrp3.lookvector*(p-hrp3.pos).mag*0.5

#

im on mobile so it's messy