#custom camera
1 messages · Page 1 of 1 (latest)
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
get those 2 rig at the front and divide it's distance by 2, get the left rig right vector and multiply by 2, now use that result and find the distance at those 1 humanoid at the back and then divide by 2 and use that back humanoid lookvector multiply the result and u get the middle thing, maybe add y vector a bit so it goes up
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