So, I am trying to make a pistol on which you can aim down sights. I tried tinkering with the CurrentCamera to try to do that, but I didn't get the results I wanted. Can someone help me with this?
Code:
mouse.Button2Down:connect(function() print("Aiming down sights!") if not ads then cam.CameraSubject = gun.Union cam.CFrame = gun.Union.CFrame ads = true else cam.CameraSubject = plr.Character.Humanoid cam.CFrame = plr.Character.HumanoidRootPart.CFrame ads = false end end)

5 comments
I don't care if it's deprecated, I find the "non-deprecated" or whatever they are called methods way too complicated
Also, KeyDown works just fine for me. I'm just not sure how to do the ADS part properly.
The deprecated code doesn’t work anymore. It causes lag and delay, and just doesn’t work. Why use old code over new code.
The ContextActionService has a more accurate way of getting user input, while the KeyDown event doesn’t.
Depricated code isn't a good choice it take longer to execute and can cause more problems.