Hi everyone, just yesterday I posted a post about how I want to make a smooth third-person camera, with a fixed cursor in the center of the screen. At this stage, I am interested in the smoothness of the camera. By smoothness, I mean what you can see in the examples of my previous post
POST: Problem with the smooth camera
In the comments, I was answered and advised to watch a video about springs, but although the answer lay on the surface, for me this material seemed difficult.
I also want to show you exactly where I would like to implement such a camera:
As you can see, the camera is very sharp and unnatural. I’d like to make camera heavy and a bit laggy
I would like to hear the opinion of people who understand the properties of the camera, how best to make the smoothness. I also wanted to know how Lerp and springs work.
Camra.CoordinateFrame = CFrame.new(humanoidpart.Position + Vector3.new(0,1.5,0))
* CFrame.Angles(0,math.rad(AngleY),0)
* CFrame.Angles(math.rad(AngleX),0,0)
* CFrame.new(0,0,0) -- Change the cframe value to change the value of the camera
instead of that you can get the Camera.CFrame.LookVector.Unit
then multiply that by anything and that should get the effect you want except in the 3rd person view
OH GOD! Sorry pls. I just rechecked your script, tweaking it a bit, and it turned out to work exactly as I wanted it to! I am incredibly grateful! Thanks
when pressing ctrl, I want the camera to go down a little bit. I already have the form
local isCrawling = false
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftControl then
if not isCrawling then
---lower the camera slightly
isCrawling = true
else
---restore the original CFrame
isCrawling = false
end
end
end)
local Offset = Vector3 or cframe
local isCrawling = false
-- in the camera cframe code stuff just add the vector or * the cframe
uis.InputBegan:Connect(function(input, gamepro)
if input.KeyCode == Enum.KeyCode.LeftControl and not gamepro then
if not isCrawling then
---lower the camera slightly
-- tween the vector or cframe or something
isCrawling = true
else
---restore the original CFrame
-- tween the vector or cframe or something
isCrawling = false
end
end
end)