Control shift lock?

So I have this gun that im trying to get to aim down in 3rd person. And I have tried cframe, and am now testing shoulder cameras. But nothing is working. I also seem to have an issue with the way I do the cameras. I have the Character look at camera script edited to stop once a certain tool was pulled out, and then activate a part that makes the player follow the mouse with that tool. And so I run into a few problems here, any help? Heres part of the script im trying.

function inputEnded2(input2)
	if input2.UserInputType == InputType.MouseButton2 then
			Camera.CameraType = Enum.CameraType.Custom
	end
	end
		
		function inputBegan2(input2)
	if input2.UserInputType == InputType.MouseButton2 then
			Camera.CameraType = Enum.CameraType.Scriptable
		local c = workspace.CurrentCamera
	end
		end

You can simply tween Camera.FieldOfView to give a zooming in effect.

Any help with sometrhing like that?

1 Like

And I want it to be exactly in one position, not like “just zoomed” so it can have the perfect aim.

Actually, how could I force shift lock with that and unforce it after?

TweenService is your friend for this task. The other things you want isn’t really clear, but see these links

1 Like

I need shift lock to be controlled. HOw would I activate it and deactivate it when the player right clicks and ends the right click?

I don’t know if that’s possible.

I feel like it is. Character30

you would require a custom camera script to do that, otherwise your only option is field of view, because shiftlock doesn’t give control at all.

Any help with that? Character30

these articles teach you about how camera works, how you use that knowledge is up to you, good luck!

1 Like