game:GetService("UserInputService").InputBegan:connect(function (input, _)

	    if input.KeyCode == enum.KeyCode.W then

	        print("the player pressed W")

	    end

	end)

I Want It So That When You Press W Then The CameraMaxZoomDistance In Local Player To Change It's Property To Change A Value

3 comments

0

I would recommend adding more to the if statement, right now it's only going to print("The player pressed W"), it won't do anything else and you need to add more to it. You need to attempt to script it and then ask for help if you can't get it to work on your own. We are here to help you with your script, not make you one.

0

this is AN attempt.

0

And for clarification, do you want to press W and then the camera zooms out to max zoom distance? I'm having a hard time understanding what you're trying to do