Hey, I’ve made a crouch animation, and it works properly and what not, my game plays in first person, so I’m trying to make it when you crouch, the camera goes down like to your eyesight sorta deal if that makes sense, heres the issue im dealing with
https://gyazo.com/9b33ba9dc344a4cf029e8e7a8b8671ea
local function TweenCamera(Status)
print(Status)
if Status == "Up" then
local Camera = game.Workspace.CurrentCamera
Camera.CameraSubject = Character.Humanoid
local Info = TweenInfo.new(0.7,Enum.EasingStyle.Circular)
local TweenTable = {}
TweenTable.CFrame = Camera.CFrame * CFrame.new(0,3,0)
local TweenPlay = TweenService:Create(Camera,Info,TweenTable)
TweenPlay:Play()
Camera.CameraType = Enum.CameraType.Custom
elseif Status == "Down" then
local Camera = game.Workspace.CurrentCamera
Camera.CameraSubject = Character.Humanoid
local Info = TweenInfo.new(0.7,Enum.EasingStyle.Circular)
local TweenTable = {}
TweenTable.CFrame = Camera.CFrame * CFrame.new(0,-3,0)
local TweenPlay = TweenService:Create(Camera,Info,TweenTable)
TweenPlay:Play()
Camera.CameraType = Enum.CameraType.Custom
end
end
When the player crouches it plays this script, and the issue i’m having is that you can’t control the mouse while its adjusting the camera, and once the tween is finished, the camera resets, I’ve tried setting the camera type to scriptable and what not but that doesn’t fix anything as I want the player to have control of the camera as it lowers.