Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How To Make Zoom Out Function When You Press W?

Asked by 4 years ago
Edited 4 years ago

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

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. Just2Terrify 566 — 4y
0
this is AN attempt. royaltoe 5144 — 4y
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 royaltoe 5144 — 4y

Answer this question