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

A small fun fact: I have 6 month didn't log in this account

4 comments

0

sorry for the bad grammar cuz i suck anyways

0

do you have cameratype to scriptable?

0

........yes

0

and i forever looped the camera so the camera updates every second