You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
a good camera offset simulating shiftlock while not being shiftlock -
What is the issue? Include screenshots / videos if possible!
Camera jitters when rotating or jumping while RotationType is set to CameraRelative and Humanoid.CameraOffset is set to anything else than Vector3.zero -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Every Developer Hub solution I’ve seen is for first person uses while i want the a solution that is for third person or just says that this was an engine bug that has been fixed in the Roblox Studio Version 625.
local Player = game:GetService("Players").LocalPlayer
print("Activated")
game:GetService("RunService").RenderStepped:Connect(function()
if Player:FindFirstChild('Cutscene') == nil and Player.Character:FindFirstChild('Torso') and Player.Character.Humanoid.Health > 0 then
local offset = Player.Character.Torso.CFrame:ToObjectSpace(Player.Character.HumanoidRootPart.CFrame).Position
local camOffset = Vector3.new(-offset.X, -offset.Y, -offset.Z)
if Player:FindFirstChild("Aiming") and Player:FindFirstChild("Aiming").Value == true then
print("aiming")
game:GetService("TweenService"):Create(Player.Character.Humanoid, TweenInfo.new(.055, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CameraOffset = camOffset + Vector3.new(2.5,1,0)}):Play()
--Player.Character.Humanoid.CameraOffset = Vector3.new(2.5,1,0)
else
print("notaiming")
game:GetService("TweenService"):Create(Player.Character.Humanoid, TweenInfo.new(.055, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {CameraOffset = camOffset}):Play()
end
else
print("died or cutscene")
end
end)