Hello there. I have a question but I can't figure out how to make it work.
Background information (skippable):
I put a Localscript in the StarterPlayer > StarterPlayerScript and I setted the script looks like this:
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.W then
debounce = false
repeat
game.Workspace.CameraPart.Position = game.Workspace.CameraPart.Position + Vector3.new(0,0,-0.2)
wait(.02)
until game:GetService("UserInputService").InputEnded
end
end)
I tried like setting scripts as changing a bool value to true when people is pressing, but it isn't working. If you have anymore information, tell me. Thanks

4 comments
sorry for the bad grammar cuz i suck anyways
do you have cameratype to scriptable?
........yes
and i forever looped the camera so the camera updates every second