What do you want to achieve?
I want to move the camera down while I crouch to give more feedback on when you’re crouching What is the issue?
I can’t seem to figure out on how to do this What solutions have you tried so far?
I’ve tried multiplying the CFrame with Vector3 but yielded no luck
I’ve tried matching the camera with the head but ended up spinning around
if Input.KeyCode == Enum.KeyCode.LeftControl then
Humanoid.WalkSpeed = 8
crouch = true
repeat wait()
if (moveW == true) or (moveA == true) or (moveS == true) or (moveD == true) or (moveUp == true) or (moveDw == true) then
state = 2
else
state = 1
end
print(state)
ce:FireServer(state)
Humanoid.CameraOffset = Vector3.new(0,-1,-0.25)
until crouch == false
ce:FireServer(0)
end
Then something like this would probably be correct:
if Input.KeyCode == Enum.KeyCode.LeftControl then
Humanoid.WalkSpeed = 8
crouch = true
Humanoid.CameraOffset = Vector3.new(0,-1,-0.25)
repeat wait()
if (moveW == true) or (moveA == true) or (moveS == true) or (moveD == true) or (moveUp == true) or (moveDw == true) then
state = 2
else
state = 1
end
print(state)
ce:FireServer(state)
until crouch == false
Humanoid.CameraOffset = Vector3.new(0,0,0)
ce:FireServer(0)
end
Using this script works perfectly fine for me, so I’m not sure what your problem is…?
game:GetService("UserInputService").InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.LeftControl then
game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(0,-1,0)
end
end)
game:GetService("UserInputService").InputEnded:Connect(function(key)
if key.KeyCode == Enum.KeyCode.LeftControl then
game.Players.LocalPlayer.Character.Humanoid.CameraOffset = Vector3.new(0,0,0)
end
end)
Do you have some sort of camera system? Try searching for a script using CameraOffset using Ctrl+Shift+F.