userInputService.InputBegan:connect(function(O,U)if not U then if O.KeyCode==Enum.KeyCode.W then movement=Vector2.new(movement.X,1)elseif O.KeyCode==Enum.KeyCode.A then movement=Vector2.new(-1,movement.Y)elseif O.KeyCode==Enum.KeyCode.S then movement=Vector2.new(movement.X,-1)elseif O.KeyCode==Enum.KeyCode.D then movement=Vector2.new(1,movement.Y)end end end)

userInputService.InputBegan:connect(function(inputObject, gameProcessedEvent)
	if not gameProcessedEvent then
		if inputObject.KeyCode == Enum.KeyCode.W then
			movement = Vector2.new(movement.X, 1)
		elseif inputObject.KeyCode == Enum.KeyCode.A then
			movement = Vector2.new(-1, movement.Y)
		elseif inputObject.KeyCode == Enum.KeyCode.S then
			movement = Vector2.new(movement.X, -1)
		elseif inputObject.KeyCode == Enum.KeyCode.D then
			movement = Vector2.new(1, movement.Y)
		end
	end
end)
