So i’m trying to make when the player land on the floor the camera do a little tilt
Example video (not like this but the camera move in the same way as i want)
so i already try to tween and lerp and just dont get good so idk what to try here
So i’m trying to make when the player land on the floor the camera do a little tilt
Example video (not like this but the camera move in the same way as i want)
so i already try to tween and lerp and just dont get good so idk what to try here
Try tweening the CFrame property inside of the currentCamera.
Can you send us the code, or at least the part of the code where the camera changes?
TweenService:Create(camera, tweenInfo, {CFrame = CFrame.new()})
should work
dint work the camera start to rotate too
if newState == Enum.HumanoidStateType.Landed and _oldState == Enum.HumanoidStateType.Freefall then
Humanoid.JumpPower = 0
Humanoid.WalkSpeed = 6
local tweenG = game.TweenService:Create(Camera, TweenInfo.new(0.2), {CFrame = CFrame.new(Vector3.new(Camera.CFrame.Position.X, Camera.CFrame.Position.Y - 1, Camera.CFrame.Position.Z))})
local tweenB = game.TweenService:Create(Camera, TweenInfo.new(0.2), {CFrame = CFrame.new(Vector3.new(Camera.CFrame.Position.X, Camera.CFrame.Position.Y + 1, Camera.CFrame.Position.Z))})
local FelledL = Humanoid.Animator:LoadAnimation(FelledAnim)
FelledL:Play()
tweenG:Play()
FelledL.Stopped:Wait()
falling = false
tweenB:Play()
if running then
--RunAnimHandler:Play()
Humanoid.WalkSpeed = 20
else
Humanoid.WalkSpeed = 10
end
task.wait(1)
Humanoid.JumpPower = 50
end
Please check if your Camera.CameraType
property is set to Enum.CameraType.Scriptable
.
If it isn’t then consider changing it to Scriptable
and then back to Custom
or whatever it was set to before.